Index: /sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
===================================================================
--- /sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php (revision 3915)
+++ /sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php (revision 3916)
@@ -16,4 +16,5 @@
// Query simplification.
add_filter( 'bbp_after_has_topics_parse_args', array( $this, 'has_topics' ) );
+ add_filter( 'bbp_register_view_no_replies', array( $this, 'no_replies' ) );
}
@@ -66,4 +67,9 @@
}
}
+ return $r;
+ }
+
+ public function no_replies( $r ) {
+ $r['post_parent__not_in'] = array( Plugin::THEMES_FORUM_ID, Plugin::PLUGINS_FORUM_ID, Plugin::REVIEWS_FORUM_ID );
return $r;
}