Browse files

Only remove bbPress theme compat if theme supports bbPress.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@950 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent b781219 commit 4ea1316cc59b0606b12cf90590be51963cd01810 greenshady committed Dec 9, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 hybrid.php
View
4 hybrid.php
@@ -317,7 +317,9 @@ function admin() {
*/
function default_filters() {
- remove_action( 'bbp_init', 'bbp_setup_theme_compat', 8 );
+ /* Remove bbPress theme compatibility if current theme supports bbPress. */
+ if ( current_theme_supports( 'bbpress' ) )
+ remove_action( 'bbp_init', 'bbp_setup_theme_compat', 8 );
/* Move the WordPress generator to a better priority. */
remove_action( 'wp_head', 'wp_generator' );

0 comments on commit 4ea1316

Please sign in to comment.