Skip to:
Content

BuddyPress.org

Ticket #3473: 3473-1.patch

File 3473-1.patch, 1007 bytes (added by DJPaul, 15 years ago)
  • bp-core/admin/bp-core-update.php

     
    765765                if ( isset( $_POST['submit'] ) ) {
    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
    771771                        // Transfer important settings from blog options to site options
     
    789789                                $bp_pages       = $this->setup_pages( (array)$_POST['bp_pages'] );
    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' ) ) )
    795795                                        restore_current_blog();