Changeset 9009 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
- Timestamp:
- 07/02/2019 04:08:55 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r9003 r9009 282 282 global $wpdb; 283 283 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 ) ); 286 285 287 286 wp_cache_set( $post->ID, $count, 'plugin_download_count', HOUR_IN_SECONDS );
Note: See TracChangeset
for help on using the changeset viewer.