Changeset 4559 for trunk/bp-core/bp-core-loader.php
- Timestamp:
- 06/24/2011 06:57:51 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-loader.php
r4556 r4559 22 22 require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-adminbar.php' ); 23 23 24 // Move active components from sitemeta, if necessary 25 // Provides backpat with earlier versions of BP 26 if ( is_multisite() && $active_components = get_site_option( 'bp-active-components' ) ) 27 bp_update_option( 'bp-active-components', $active_components ); 28 24 29 /** "And now for something completely different" ******************************/ 25 30 … … 67 72 68 73 // Get a list of activated components 69 if ( $active_components = get_site_option( 'bp-active-components' ) ) {74 if ( $active_components = bp_get_option( 'bp-active-components' ) ) { 70 75 $bp->active_components = apply_filters( 'bp_active_components', $active_components ); 71 76 $bp->deactivated_components = apply_filters( 'bp_deactivated_components', array_values( array_diff( array_values( array_merge( $bp->optional_components, $bp->required_components ) ), array_keys( $bp->active_components ) ) ) ); 72 77 73 78 // Pre 1.3 Backwards compatibility 74 } elseif ( $deactivated_components = get_site_option( 'bp-deactivated-components' ) ) {79 } elseif ( $deactivated_components = bp_get_option( 'bp-deactivated-components' ) ) { 75 80 // Trim off namespace and filename 76 81 foreach ( (array) $deactivated_components as $component => $value )
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)