Changeset 4602 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 07/04/2011 04:59:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r4559 r4602 777 777 $active_components['blogs'] = 1; 778 778 779 // Make sure that the pages are created on the BP_ROOT_BLOG, no matter which Dashboard the setup is being run on780 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != BP_ROOT_BLOG) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )781 switch_to_blog( BP_ROOT_BLOG);779 // Make sure that the pages are created on the bp_get_root_blog_id(), no matter which Dashboard the setup is being run on 780 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 781 switch_to_blog( bp_get_root_blog_id() ); 782 782 783 783 // Move bp-pages data from the blog options table to site options … … 789 789 bp_update_option( 'bp-pages', $existing_pages ); 790 790 791 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != BP_ROOT_BLOG) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )791 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 792 792 restore_current_blog(); 793 793 … … 831 831 check_admin_referer( 'bpwizard_pages' ); 832 832 833 // Make sure that the pages are created on the BP_ROOT_BLOG, no matter which Dashboard the setup is being run on834 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != BP_ROOT_BLOG) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )835 switch_to_blog( BP_ROOT_BLOG);833 // Make sure that the pages are created on the bp_get_root_blog_id(), no matter which Dashboard the setup is being run on 834 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 835 switch_to_blog( bp_get_root_blog_id() ); 836 836 837 837 // Delete any existing pages … … 844 844 bp_update_option( 'bp-pages', $blog_pages ); 845 845 846 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != BP_ROOT_BLOG) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )846 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 847 847 restore_current_blog(); 848 848 … … 958 958 check_admin_referer( 'bpwizard_theme' ); 959 959 960 if ( is_multisite() && BP_ROOT_BLOG!= get_current_blog_id() )961 switch_to_blog( BP_ROOT_BLOG);960 if ( is_multisite() && bp_get_root_blog_id() != get_current_blog_id() ) 961 switch_to_blog( bp_get_root_blog_id() ); 962 962 963 963 switch ( $_POST['theme'] ) {
Note: See TracChangeset
for help on using the changeset viewer.