Changeset 5015
- Timestamp:
- 02/28/2017 12:35:50 AM (8 years ago)
- Location:
- sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php
r4220 r5015 682 682 } 683 683 684 // Make it easier to contribute to this theme by not assuming WP.com context. 685 if ( function_exists( 'bump_stats_extras' ) ) { 686 bump_stats_extras( 'wptv-activity', 'publish-video' ); 687 } 684 bump_stats_extras( 'wptv-activity', 'publish-video' ); 688 685 } 689 686 } … … 853 850 return $username_exists; 854 851 } 852 853 if ( ! function_exists( 'bump_stats_extras' ) ) { 854 /** 855 * Define a stub for `bump_stats_extras()` 856 * 857 * This function only exists on WordPress.com, so we need a stub to prevent fatal `undefined function` errors 858 * in the Meta Environment and other local dev environments. 859 * 860 * @param string $name 861 * @param string $value 862 * @param int $num 863 * @param bool $today 864 * @param bool $hour 865 */ 866 function bump_stats_extras( $name, $value, $num = 1, $today = false, $hour = false ) { 867 // This is intentionally empty 868 } 869 } -
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-anon-upload/anon-upload.php
r1725 r5015 56 56 // Normal users won't see the honeypot field, so if there's a value in it, then we can assume the submission is spam from a bot 57 57 if ( ! isset( $_POST['wptv_honey'] ) || ! empty( $_POST['wptv_honey'] ) ) { 58 if ( function_exists( 'bump_stats_extras' ) ) { 59 bump_stats_extras( 'wptv-spam', 'honeypot_trapped_anon_upload' ); 60 } 58 bump_stats_extras( 'wptv-spam', 'honeypot_trapped_anon_upload' ); 61 59 62 60 return $this->error( 13 ); … … 160 158 161 159 function error( $msg ) { 160 bump_stats_extras( 'wptv-errors', 'video-upload-failed' ); 162 161 $this->errors = $msg; 163 162 -
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-upload-subtitles/wordpresstv-upload-subtitles.php
r4221 r5015 489 489 */ 490 490 function error( $message ) { 491 bump_stats_extras( 'wptv-errors', 'subtitle-upload-failed' ); 492 491 493 wp_safe_redirect( add_query_arg( array( 492 494 'video' => $this->video_id, … … 500 502 */ 501 503 function success() { 504 bump_stats_extras( 'wptv-activity', 'subtitle-uploaded' ); 505 502 506 wp_safe_redirect( add_query_arg( array( 503 507 'video' => $this->video_id,
Note: See TracChangeset
for help on using the changeset viewer.