Making WordPress.org

Changeset 3922


Ignore:
Timestamp:
09/01/2016 09:09:59 PM (9 years ago)
Author:
jmdodd
Message:

Support Forums: Exclude plugin- and theme-specific forums from all topics view.

File:
1 edited

Legend:

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

    r3919 r3922  
    1717        add_filter( 'bbp_after_has_topics_parse_args', array( $this, 'has_topics' ) );
    1818        add_filter( 'bbp_after_has_replies_parse_args', array( $this, 'has_replies' ) );
    19         add_filter( 'bbp_register_view_no_replies', array( $this, 'no_replies' ) );
     19        add_filter( 'bbp_register_view_no_replies', array( $this, 'exclude_compat_forums' ) );
     20        add_filter( 'bbp_register_view_all_topics', array( $this, 'exclude_compat_forums' ) );
    2021    }
    2122
     
    8788    }
    8889
    89     public function no_replies( $r ) {
     90    public function exclude_compat_forums( $r ) {
    9091        $r['post_parent__not_in'] = array( Plugin::THEMES_FORUM_ID, Plugin::PLUGINS_FORUM_ID, Plugin::REVIEWS_FORUM_ID );
    9192        return $r;
Note: See TracChangeset for help on using the changeset viewer.