Making WordPress.org

Changeset 5179


Ignore:
Timestamp:
03/28/2017 09:03:05 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Fix plugin download count stat recording - a typo caused counts not to be recorded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/zip/class-serve.php

    r5147 r5179  
    193193        $wpdb->query( $wpdb->prepare(
    194194            "INSERT INTO {$stats_download_table} (`plugin_slug`, `downloads`) VALUES ( %s, 1 ) ON DUPLICATE KEY UPDATE `downloads` = `downloads` + 1",
    195             $stats['plugin_slug']
     195            $request['slug']
    196196        ) );
    197197
    198198        $wpdb->query( $wpdb->prepare(
    199199            "INSERT INTO {$stats_download_daily_table} (`plugin_slug`, `stamp`, `downloads`) VALUES ( %s, %s, 1 ) ON DUPLICATE KEY UPDATE `downloads` = `downloads` + 1",
    200             $stats['plugin_slug'],
     200            $request['slug'],
    201201            gmdate( 'Y-m-d' )
    202202        ) );
Note: See TracChangeset for help on using the changeset viewer.