Changeset 3922
- Timestamp:
- 09/01/2016 09:09:59 PM (9 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
r3919 r3922 17 17 add_filter( 'bbp_after_has_topics_parse_args', array( $this, 'has_topics' ) ); 18 18 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' ) ); 20 21 } 21 22 … … 87 88 } 88 89 89 public function no_replies( $r ) {90 public function exclude_compat_forums( $r ) { 90 91 $r['post_parent__not_in'] = array( Plugin::THEMES_FORUM_ID, Plugin::PLUGINS_FORUM_ID, Plugin::REVIEWS_FORUM_ID ); 91 92 return $r;
Note: See TracChangeset
for help on using the changeset viewer.