Skip to:
Content

BuddyPress.org

Changeset 6434


Ignore:
Timestamp:
10/20/2012 07:47:15 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Extra logic in bp_core_allow_default_theme() to not override bp-default if it's already explicitly disallowed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-filters.php

    r6404 r6434  
    125125        return $themes;
    126126
    127     if ( $wpdb->blogid == bp_get_root_blog_id() ) {
    128         $themes['bp-default'] = 1;
    129     }
     127    if ( bp_get_root_blog_id() != $wpdb->blogid )
     128        return $themes;
     129
     130    if ( isset( $themes['bp-default'] ) )
     131        return $themes;
     132
     133    $themes['bp-default'] = true;
    130134
    131135    return $themes;
Note: See TracChangeset for help on using the changeset viewer.