Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/05/2014 07:40:14 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. (trunk)

File:
1 edited

Legend:

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

    r7734 r7798  
    598598function bp_do_register_theme_directory() {
    599599    $register = 'bp-default' === get_stylesheet() || 'bp-default' === get_template();
     600
     601    // Legacy sites continue to have the theme registered
     602    if ( empty( $register ) && ( 1 == get_site_option( '_bp_retain_bp_default' ) ) ) {
     603        $register = true;
     604    }
     605
    600606    return apply_filters( 'bp_do_register_theme_directory', $register );
    601607}
Note: See TracChangeset for help on using the changeset viewer.