Making WordPress.org


Ignore:
Timestamp:
07/02/2019 04:08:55 AM (7 years ago)
Author:
dd32
Message:

Plugin Directory: Stop referencing the bbPress1 Plugin directory tables.

File:
1 edited

Legend:

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

    r9003 r9009  
    282282            global $wpdb;
    283283
    284             // TODO: While the plugin ZIPs are still being served by bbPress, the download stats are stored there.
    285             $count = $wpdb->get_var( $wpdb->prepare( 'SELECT downloads FROM `' . PLUGINS_TABLE_PREFIX . 'download_counts` WHERE topic_id = (SELECT topic_id FROM `' . PLUGINS_TABLE_PREFIX . 'topics` WHERE topic_slug = %s )', $post->post_name ) );
     284            $count = $wpdb->get_var( $wpdb->prepare( 'SELECT downloads FROM `' . PLUGINS_TABLE_PREFIX . 'download_counts` WHERE plugin_slug = %s', $post->post_name ) );
    286285
    287286            wp_cache_set( $post->ID, $count, 'plugin_download_count', HOUR_IN_SECONDS );
Note: See TracChangeset for help on using the changeset viewer.