Skip to content

Commit

Permalink
Only remove bbPress theme compat if theme supports bbPress.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@950 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information
greenshady committed Dec 9, 2011
1 parent b781219 commit 4ea1316
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hybrid.php
Expand Up @@ -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' );
Expand Down

0 comments on commit 4ea1316

Please sign in to comment.