Changeset 4961 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r4948 r4961 263 263 } 264 264 265 function step_ms_update() { 265 function step_ms_update() { 266 266 if ( !current_user_can( 'activate_plugins' ) ) 267 267 return false; … … 371 371 372 372 $existing_pages = bp_core_update_get_page_meta(); 373 373 374 374 // Provide empty indexes to avoid PHP errors with wp_dropdown_pages() 375 375 $indexes = array( 'members', 'activity', 'groups', 'forums', 'blogs', 'register', 'activate' ); … … 378 378 $existing_pages[$index] = ''; 379 379 } 380 380 381 381 if ( !empty( $existing_pages['blogs'] ) ) 382 382 $existing_blog_page = '&selected=' . $existing_pages['blogs']; … … 1272 1272 function bp_core_update_do_network_admin() { 1273 1273 $do_network_admin = false; 1274 1274 1275 1275 if ( is_multisite() && ( !defined( 'BP_ENABLE_MULTIBLOG' ) || !BP_ENABLE_MULTIBLOG ) ) 1276 1276 $do_network_admin = true; 1277 1277 1278 1278 return apply_filters( 'bp_core_do_network_admin', $do_network_admin ); 1279 1279 } … … 1281 1281 function bp_core_update_admin_hook() { 1282 1282 $hook = bp_core_update_do_network_admin() ? 'network_admin_menu' : 'admin_menu'; 1283 1283 1284 1284 return apply_filters( 'bp_core_admin_hook', $hook ); 1285 1285 }
Note: See TracChangeset
for help on using the changeset viewer.