Changeset 3939 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
- Timestamp:
- 09/03/2016 04:13:18 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
r3922 r3939 76 76 $this->query = $r; 77 77 } 78 79 if ( bbp_is_single_view() && ! in_array( bbp_get_view_id(), array( 'plugin', 'theme', 'reviews', 'active' ) ) ) { 80 $r['post_parent__not_in'] = array( Plugin::THEMES_FORUM_ID, Plugin::PLUGINS_FORUM_ID, Plugin::REVIEWS_FORUM_ID ); 81 } 78 82 } 79 83 return $r; … … 180 184 if ( false === $bound_id ) { 181 185 182 // Use the type_status_date index .186 // Use the type_status_date index, excluding reviews because they were imported last. 183 187 $bound_id = $wpdb->get_var( " 184 188 SELECT `ID` … … 186 190 WHERE post_type = 'topic' 187 191 AND post_status IN ( 'publish', 'closed' ) 192 AND post_parent != 21272 188 193 AND post_date < DATE_SUB( NOW(), INTERVAL $interval ) 189 194 ORDER BY `ID` DESC
Note: See TracChangeset
for help on using the changeset viewer.