Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/14/2011 04:25:54 PM (13 years ago)
Author:
djpaul
Message:

Fix multisite upgrading loosing existing component activation settings and page mapping. Fixes #3473

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r4965 r4978  
    766766            check_admin_referer( 'bpwizard_ms_update' );
    767767
    768             if ( !$active_components = get_site_option( 'bp-active-components' ) )
     768            if ( !$active_components = bp_get_option( 'bp-active-components' ) )
    769769                $active_components = array();
    770770
     
    790790                $bp_pages       = array_merge( (array)$existing_pages, (array)$bp_pages );
    791791
    792                 bp_update_option( 'bp-pages', $existing_pages );
     792                bp_update_option( 'bp-pages', $bp_pages );
    793793
    794794                if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )
Note: See TracChangeset for help on using the changeset viewer.