WordPress.org

Making WordPress.org

Changeset 9606


Ignore:
Timestamp:
03/19/2020 02:49:56 AM (14 months ago)
Author:
dd32
Message:

Support Forums: Don't limit topic threads feeds to posts within the last month. The limit still applies for Forums/archives/etc.

Props TweetyThierry.
Fixes #2048.

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  
    267267        if ( is_feed() ) {
    268268            $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            }
    270272        }
    271273
     
    320322        if ( is_feed() ) {
    321323            $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            }
    323327        }
    324328        return $r;
Note: See TracChangeset for help on using the changeset viewer.