Making WordPress.org

Changeset 14261


Ignore:
Timestamp:
12/11/2024 04:26:43 AM (18 months ago)
Author:
dd32
Message:

Theme Directory: Call the correct stats function.

Added in [13819].

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r14053 r14261  
    282282        $this->version_status = 'live';
    283283
    284         if ( 'themedropbox' !== $author && function_exists( 'bump_stats_extras' ) ) {
    285             bump_stats_extras( 'themes', 'upload_from_svn' );
     284        if ( 'themedropbox' !== $author && function_exists( 'bump_stats_extra' ) ) {
     285            bump_stats_extra( 'themes', 'upload_from_svn' );
    286286        }
    287287
     
    769769
    770770        // Record stats.
    771         if ( function_exists( 'bump_stats_extras' ) ) {
    772             bump_stats_extras( 'themes', $is_new_upload ? 'new' : 'update' );
     771        if ( function_exists( 'bump_stats_extra' ) ) {
     772            bump_stats_extra( 'themes', $is_new_upload ? 'new' : 'update' );
    773773        }
    774774
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r13908 r14261  
    15621562        'repopackage' !== $post->post_type ||
    15631563        in_array( $new_status, [ 'draft', 'auto-draft' ] ) ||
    1564         ! function_exists( 'bump_stats_extras' )
     1564        ! function_exists( 'bump_stats_extra' )
    15651565    ) {
    15661566        return;
     
    15751575    }
    15761576 
    1577     bump_stats_extras( 'themes', 'status-' . $stat );
     1577    bump_stats_extra( 'themes', 'status-' . $stat );
    15781578}
    15791579add_action( 'transition_post_status', 'wporg_themes_status_change_stats', 10, 3 );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php

    r14259 r14261  
    158158    $message = $upload->process_upload( $_FILES['zip_file'] );
    159159
    160     if ( ! is_wp_error( $message ) && function_exists( 'bump_stats_extras' ) ) {
    161         bump_stats_extras( 'themes', 'upload_by_zip' );
     160    if ( ! is_wp_error( $message ) && function_exists( 'bump_stats_extra' ) ) {
     161        bump_stats_extra( 'themes', 'upload_by_zip' );
    162162    }
    163163
Note: See TracChangeset for help on using the changeset viewer.