WordPress.org

Making WordPress.org

Changeset 3916


Ignore:
Timestamp:
09/01/2016 07:19:46 PM (3 years ago)
Author:
jmdodd
Message:

Support Forums: Avoid adding plugin and theme topics to the no-replies view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php

    r3908 r3916  
    1616        // Query simplification.
    1717        add_filter( 'bbp_after_has_topics_parse_args', array( $this, 'has_topics' ) );
     18        add_filter( 'bbp_register_view_no_replies', array( $this, 'no_replies' ) );
    1819    }
    1920
     
    6667            }
    6768        }
     69        return $r;
     70    }
     71
     72    public function no_replies( $r ) {
     73        $r['post_parent__not_in'] = array( Plugin::THEMES_FORUM_ID, Plugin::PLUGINS_FORUM_ID, Plugin::REVIEWS_FORUM_ID );
    6874        return $r;
    6975    }
Note: See TracChangeset for help on using the changeset viewer.