Skip to content
Browse files

Theme Compatibility:

* Only run bbp_template_include_theme_compat() on main loop.

git-svn-id: http://bbpress.svn.wordpress.org/branches/plugin@3923 9866e705-20ec-0310-96e7-cbb4277adcfb
  • Loading branch information...
1 parent b78ab79 commit 606526e2e2f788bc58eea806236fe30e5fd99c1b johnjamesjacoby committed May 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bbp-includes/bbp-theme-compatibility.php
View
4 bbp-includes/bbp-theme-compatibility.php
@@ -340,8 +340,8 @@ function bbp_theme_compat_reset_post( $args = array() ) {
*/
function bbp_template_include_theme_compat( $template = '' ) {
- // Bail if current theme has this under control
- if ( current_theme_supports( 'bbpress' ) )
+ // Only filter the main query
+ if ( ! is_main_query() )
return $template;
/** Users *************************************************************/

0 comments on commit 606526e

Please sign in to comment.
Something went wrong with that request. Please try again.