Skip to:
Content

Changeset 1601


Ignore:
Timestamp:
07/14/09 20:08:46 (5 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.