Changeset 9606
- Timestamp:
- 03/19/2020 02:49:56 AM (5 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
r9596 r9606 267 267 if ( is_feed() ) { 268 268 $r['no_found_rows'] = true; 269 add_filter( 'posts_where', array( $this, 'posts_in_last_month' ) ); 269 if ( ! is_singular( 'topic' ) ) { 270 add_filter( 'posts_where', array( $this, 'posts_in_last_month' ) ); 271 } 270 272 } 271 273 … … 320 322 if ( is_feed() ) { 321 323 $r['no_found_rows'] = true; 322 add_filter( 'posts_where', array( $this, 'posts_in_last_month' ) ); 324 if ( ! is_singular( 'topic' ) ) { 325 add_filter( 'posts_where', array( $this, 'posts_in_last_month' ) ); 326 } 323 327 } 324 328 return $r;
Note: See TracChangeset
for help on using the changeset viewer.