Changeset 3916
- Timestamp:
- 09/01/2016 07:19:46 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
r3908 r3916 16 16 // Query simplification. 17 17 add_filter( 'bbp_after_has_topics_parse_args', array( $this, 'has_topics' ) ); 18 add_filter( 'bbp_register_view_no_replies', array( $this, 'no_replies' ) ); 18 19 } 19 20 … … 66 67 } 67 68 } 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 ); 68 74 return $r; 69 75 }
Note: See TracChangeset
for help on using the changeset viewer.