Changeset 43627
- Timestamp:
- 09/05/2018 09:38:04 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r43571 r43627 357 357 * 358 358 * @since 1.5.0 359 * @since 5.0.0 The $options parameter has been added. 359 360 * 360 361 * @global wpdb $wpdb WordPress database abstraction object. 361 362 * @global int $wp_db_version 362 363 * @global int $wp_current_db_version 363 */ 364 function populate_options() { 364 * 365 * @param array $options Optional. Custom option $key => $value pairs to use. Default empty array. 366 */ 367 function populate_options( array $options = array() ) { 365 368 global $wpdb, $wp_db_version, $wp_current_db_version; 366 369 … … 407 410 } 408 411 409 $ options = array(412 $defaults = array( 410 413 'siteurl' => $guessurl, 411 414 'home' => $guessurl, … … 543 546 // 3.3 544 547 if ( ! is_multisite() ) { 545 $ options['initial_db_version'] = ! empty( $wp_current_db_version ) && $wp_current_db_version < $wp_db_version548 $defaults['initial_db_version'] = ! empty( $wp_current_db_version ) && $wp_current_db_version < $wp_db_version 546 549 ? $wp_current_db_version : $wp_db_version; 547 550 } … … 550 553 if ( is_multisite() ) { 551 554 /* translators: site tagline */ 552 $options['blogdescription'] = sprintf( __( 'Just another %s site' ), get_network()->site_name ); 553 $options['permalink_structure'] = '/%year%/%monthnum%/%day%/%postname%/'; 554 } 555 $defaults['blogdescription'] = sprintf( __( 'Just another %s site' ), get_network()->site_name ); 556 $defaults['permalink_structure'] = '/%year%/%monthnum%/%day%/%postname%/'; 557 } 558 559 $options = wp_parse_args( $options, $defaults ); 555 560 556 561 // Set autoload to no for these options
Note: See TracChangeset
for help on using the changeset viewer.