Skip to:
Content

BuddyPress.org

Changeset 1601


Ignore:
Timestamp:
07/14/2009 08:08:46 PM (15 years ago)
Author:
apeatling
Message:

Fixing bp-theme folder support in WPMU 2.8.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/bp-core.php

    r1561 r1601  
    12231223 */
    12241224function bp_core_get_buddypress_themes() {
     1225    global $wp_themes;
     1226   
     1227    /* Remove the cached WP themes first */
     1228    $wp_existing_themes = &$wp_themes;
     1229    $wp_themes = null;
     1230   
    12251231    add_filter( 'theme_root', 'bp_core_filter_buddypress_theme_root' );
    12261232    $themes = get_themes();
     
    12381244        }
    12391245    }
     1246   
     1247    /* Restore the cached WP themes */
     1248    $wp_themes = $wp_existing_themes;
    12401249   
    12411250    return $member_themes;
Note: See TracChangeset for help on using the changeset viewer.