Changeset 4107 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 03/11/2011 06:02:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r4106 r4107 740 740 741 741 function step_ms_update_save() { 742 global $ current_blog;742 global $wpdb; 743 743 744 744 if ( isset( $_POST['submit'] ) ) { … … 762 762 } else { 763 763 // Make sure that the pages are created on the BP_ROOT_BLOG, no matter which Dashboard the setup is being run on 764 if ( $ current_blog->blog_id != BP_ROOT_BLOG && !defined( 'BP_ENABLE_MULTIBLOG' ) )764 if ( $wpdb->blogid != BP_ROOT_BLOG && !defined( 'BP_ENABLE_MULTIBLOG' ) ) 765 765 switch_to_blog( BP_ROOT_BLOG ); 766 766 … … 771 771 update_option( 'bp-pages', $bp_pages ); 772 772 773 if ( $ current_blog->blog_id != BP_ROOT_BLOG )773 if ( $wpdb->blogid != BP_ROOT_BLOG ) 774 774 restore_current_blog(); 775 775 … … 810 810 811 811 function step_pages_save() { 812 global $ current_blog;812 global $wpdb; 813 813 814 814 if ( isset( $_POST['submit'] ) && isset( $_POST['bp_pages'] ) ) { … … 816 816 817 817 // Make sure that the pages are created on the BP_ROOT_BLOG, no matter which Dashboard the setup is being run on 818 if ( !empty( $ current_blog->blog_id ) && $current_blog->blog_id != BP_ROOT_BLOG && !defined( 'BP_ENABLE_MULTIBLOG' ) )818 if ( !empty( $wpdb->blogid ) && $wpdb->blogid != BP_ROOT_BLOG && !defined( 'BP_ENABLE_MULTIBLOG' ) ) 819 819 switch_to_blog( BP_ROOT_BLOG ); 820 820 … … 829 829 update_option( 'bp-pages', $bp_pages ); 830 830 831 if ( !empty( $ current_blog->blog_id ) && $current_blog->blog_id != BP_ROOT_BLOG )831 if ( !empty( $wpdb->blogid ) && $wpdb->blogid != BP_ROOT_BLOG ) 832 832 restore_current_blog(); 833 833 … … 853 853 $permalink_structure = preg_replace( '#/+#', '/', '/' . $_POST['permalink_structure'] ); 854 854 855 if ( ( defined( 'VHOST' ) && constant( 'VHOST' ) == 'no' ) && $permalink_structure != '' && $current_site->domain .$current_site->path == $current_blog->domain.$current_blog->path )855 if ( ( defined( 'VHOST' ) && constant( 'VHOST' ) == 'no' ) && $permalink_structure != '' && $current_site->domain . $current_site->path == $current_blog->domain . $current_blog->path ) 856 856 $permalink_structure = '/blog' . $permalink_structure; 857 857
Note: See TracChangeset
for help on using the changeset viewer.