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