Changeset 5976 for trunk/bp-core/bp-core-options.php
- Timestamp:
- 04/10/2012 07:43:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-options.php
r5927 r5976 322 322 $root_blog_options_meta = array_merge( $root_blog_options_meta, $network_options_meta ); 323 323 } 324 324 325 325 // Missing some options, so do some one-time fixing 326 326 if ( empty( $root_blog_options_meta ) || ( count( $root_blog_options_meta ) < count( $root_blog_option_keys ) ) ) { 327 328 // Get a list of the keys that are already populated 329 $existing_options = array(); 330 foreach( $root_blog_options_meta as $already_option ) { 331 $existing_options[$already_option->name] = $already_option->value; 332 } 327 333 328 334 // Unset the query - We'll be resetting it soon … … 334 340 unset( $old_meta_value ); 335 341 342 if ( isset( $existing_options[$old_meta_key] ) ) { 343 continue; 344 } 345 336 346 // Get old site option 337 347 if ( is_multisite() ) … … 348 358 $root_blog_options_meta[$old_meta_key] = $old_meta_value; 349 359 } 360 361 $root_blog_options_meta = array_merge( $root_blog_options_meta, $existing_options ); 362 unset( $existing_options ); 350 363 351 364 // We're all matched up
Note: See TracChangeset
for help on using the changeset viewer.