Changeset 4293 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 04/25/2011 10:25:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r4292 r4293 67 67 ); 68 68 69 // Only show permalinks panel if we don't already use them70 if ( !empty( $wp_rewrite->permalink_structure ) ) {71 unset( $steps[2] );72 73 // Reset the keys by merging with an empty array74 $steps = array_merge( array(), $steps );75 }76 77 69 // Update wizard steps 78 70 } else { … … 271 263 else 272 264 $blogs_slug = 'blogs'; 273 274 // Call up old bp-pages to see if a page has been previously linked to Blogs 265 266 // Call up old bp-pages to see if a page has been previously linked to Blogs 275 267 $page_blog_id = is_multisite() && defined( 'BP_ENABLE_MULTIBLOG' ) && BP_ENABLE_MULTIBLOG ? get_current_blog_id() : BP_ROOT_BLOG; 276 268 $existing_pages_data = get_blog_option( $page_blog_id, 'bp-pages' ); … … 782 774 $existing_pages_data = get_blog_option( $page_blog_id, 'bp-pages' ); 783 775 $existing_pages = $existing_pages_data[$page_blog_id]; 784 776 785 777 $bp_pages = $this->setup_pages( (array)$_POST['bp_pages'] ); 786 778 $bp_pages = array_merge( (array)$existing_pages, (array)$bp_pages ); 787 779 788 780 $existing_pages_data[$page_blog_id] = $bp_pages; 789 781 … … 1015 1007 @setcookie( 'bp-wizard-step', '', time() - 3600, COOKIEPATH ); 1016 1008 1017 // Load BP, so that the redirect is successful 1009 // Load BP, so that the redirect is successful 1018 1010 require_once( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' ); 1019 1011 … … 1079 1071 1080 1072 require_once( dirname( __FILE__ ) . '/bp-core-schema.php' ); 1081 1073 1082 1074 // Core DB Tables 1083 1075 bp_core_install_notifications(); … … 1292 1284 function bp_core_update_get_page_meta() { 1293 1285 $page_ids = get_site_option( 'bp-pages' ); 1294 1286 1295 1287 $is_enable_multiblog = is_multisite() && defined( 'BP_ENABLE_MULTIBLOG' ) && BP_ENABLE_MULTIBLOG ? true : false; 1296 1288 1297 1289 $page_blog_id = $is_enable_multiblog ? get_current_blog_id() : BP_ROOT_BLOG; 1298 1290 1299 1291 $blog_page_ids = !empty( $page_ids[$page_blog_id] ) ? $page_ids[$page_blog_id] : false; 1300 1292 1301 1293 return apply_filters( 'bp_core_update_get_page_meta', $blog_page_ids ); 1302 1294 }
Note: See TracChangeset
for help on using the changeset viewer.