Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/05/2014 07:35:13 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Set a switch to retain ye olde bp-default theme if it's been activated previously. Fixes issues with theme switching, and bp-default disappearing. Props boonebgorges. Fixes #5325. (1.9 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9/bp-core/bp-core-functions.php

    r7734 r7795  
    547547function bp_do_register_theme_directory() {
    548548    $register = 'bp-default' === get_stylesheet() || 'bp-default' === get_template();
     549
     550    // Legacy sites continue to have the theme registered
     551    if ( empty( $register ) && ( 1 == get_site_option( '_bp_retain_bp_default' ) ) ) {
     552        $register = true;
     553    }
     554
    549555    return apply_filters( 'bp_do_register_theme_directory', $register );
    550556}
Note: See TracChangeset for help on using the changeset viewer.