Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/25/2013 12:57:06 AM (12 years ago)
Author:
boonebgorges
Message:

Don't load bp-legacy theme compat if current_theme_supports( 'buddypress' )

Fixes #4846

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress-functions.php

    r6805 r6822  
    4848
    4949        // Bail if theme is a derivative of bp-default
    50         if ( in_array( 'bp-default', array( get_template(), get_stylesheet() ) ) )
     50        if ( in_array( 'bp-default', array( get_template(), get_stylesheet() ) ) ) {
    5151            return;
     52        }
     53
     54        // Or if the theme supports 'buddypress'
     55        if ( current_theme_supports( 'buddypress' ) ) {
     56            return;
     57        }
    5258
    5359        $this->setup_globals();
Note: See TracChangeset for help on using the changeset viewer.