--- a/web/wp-content/plugins/bbpress/includes/core/theme-compat.php Wed Dec 19 12:35:13 2012 -0800
+++ b/web/wp-content/plugins/bbpress/includes/core/theme-compat.php Wed Dec 19 17:46:52 2012 -0800
@@ -647,14 +647,18 @@
* normally be handled by bbPress, but proper single page templates do not
* exist in the currently active theme.
*
+ * Note that we do *not* currently use is_main_query() here. This is because so
+ * many existing themes either use query_posts() or fail to use wp_reset_query()
+ * when running queries before the main loop, causing theme compat to fail.
+ *
* @since bbPress (r3034)
* @param string $content
* @return type
*/
function bbp_replace_the_content( $content = '' ) {
- // Bail if not inside the main query loop
- if ( ! in_the_loop() || ! is_main_query() )
+ // Bail if not inside the query loop
+ if ( ! in_the_loop() )
return $content;
$bbp = bbpress();