Making WordPress.org


Ignore:
Timestamp:
02/28/2017 12:35:50 AM (9 years ago)
Author:
iandunn
Message:

WordPress.tv: Add extra stats and define bump_stats_extras() stub

The stub is cleaner than always adding function_exists() checks when calling the function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-upload-subtitles/wordpresstv-upload-subtitles.php

    r4221 r5015  
    489489         */
    490490        function error( $message ) {
     491                bump_stats_extras( 'wptv-errors', 'subtitle-upload-failed' );
     492
    491493                wp_safe_redirect( add_query_arg( array(
    492494                        'video' => $this->video_id,
     
    500502         */
    501503        function success() {
     504                bump_stats_extras( 'wptv-activity', 'subtitle-uploaded' );
     505
    502506                wp_safe_redirect( add_query_arg( array(
    503507                        'video'   => $this->video_id,
Note: See TracChangeset for help on using the changeset viewer.