Changeset 9008
- Timestamp:
- 07/02/2019 04:06:28 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-tools.php
r8474 r9008 51 51 $number = 2; 52 52 } 53 if ( false === ( $reviews = wp_cache_get( "{$plugin_slug}_last{$number}", 'plugin-reviews' ) ) ) { 53 54 $reviews = wp_cache_get( "{$plugin_slug}_last{$number}", 'plugin-reviews' ); 55 if ( defined( 'WPORG_SUPPORT_FORUMS_BLOGID' ) && false === $reviews ) { 54 56 global $wpdb; 55 57 … … 59 61 r.rating as post_rating 60 62 FROM ratings r 61 LEFT JOIN wporg_419_posts p ON r.post_id = p.ID63 LEFT JOIN " . $wpdb->base_prefix . WPORG_SUPPORT_FORUMS_BLOGID . "_posts p ON r.post_id = p.ID 62 64 WHERE r.object_type = 'plugin' AND r.object_slug = %s AND p.post_status = 'publish' 63 65 ORDER BY r.review_id DESC
Note: See TracChangeset
for help on using the changeset viewer.