Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2011 06:57:51 PM (15 years ago)
Author:
boonebgorges
Message:

Introduces bp_x_option() wrapper functions, along with bp_get_option_blog_id() to allow for fully filterable option storage. Refactors internal option storage to use new API functions. Fixes bp-pages for BP_ENABLE_MULTIBLOG. Fixes #3261

File:
1 edited

Legend:

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

    r4556 r4559  
    2222        require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-adminbar.php'  );
    2323
     24// Move active components from sitemeta, if necessary
     25// Provides backpat with earlier versions of BP
     26if ( is_multisite() && $active_components = get_site_option( 'bp-active-components' ) )
     27        bp_update_option( 'bp-active-components', $active_components );
     28
    2429/** "And now for something completely different" ******************************/
    2530
     
    6772
    6873                // 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' ) ) {
    7075                        $bp->active_components      = apply_filters( 'bp_active_components', $active_components );
    7176                        $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 ) ) ) );
    7277
    7378                // 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' ) ) {
    7580                        // Trim off namespace and filename
    7681                        foreach ( (array) $deactivated_components as $component => $value )
Note: See TracChangeset for help on using the changeset viewer.