Changeset 19410
- Timestamp:
- 11/22/2011 09:50:50 PM (13 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r19249 r19410 331 331 */ 332 332 function populate_options() { 333 global $wpdb, $wp_db_version, $current_site ;333 global $wpdb, $wp_db_version, $current_site, $wp_db_current_db_version; 334 334 335 335 $guessurl = wp_guess_url(); … … 481 481 ); 482 482 483 // 3.3 484 if ( ! is_multisite() ) { 485 $options['initial_db_version'] = ! empty( $wp_db_current_db_version ) && $wp_current_db_version < $wp_db_version 486 ? $wp_current_db_version : $wp_db_version; 487 } 488 483 489 // 3.0 multisite 484 490 if ( is_multisite() ) { … … 887 893 'upload_space_check_disabled' => '0', 888 894 'subdomain_install' => intval( $subdomain_install ), 889 'global_terms_enabled' => global_terms_enabled() ? '1' : '0' 895 'global_terms_enabled' => global_terms_enabled() ? '1' : '0', 896 'initial_db_version' => get_option( 'initial_db_version' ), 890 897 ); 891 898 if ( ! $subdomain_install ) -
trunk/wp-admin/includes/template.php
r19389 r19410 1678 1678 */ 1679 1679 public static function enqueue_scripts( $hook_suffix ) { 1680 if ( get_site_option( 'initial_db_version' ) >= 19389 ) // Final db_version for 3.3. 1681 return; 1682 1680 1683 /* 1681 1684 * Register feature pointers 1682 1685 * Format: array( hook_suffix => pointer_id ) 1683 1686 */ 1687 1684 1688 $registered_pointers = array( 1685 1689 'index.php' => 'wp330_toolbar', -
trunk/wp-admin/includes/upgrade.php
r19389 r19410 1151 1151 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) 1152 1152 delete_metadata( 'user', 0, 'dismissed_wp_pointers', '', true ); 1153 1154 if ( $wp_current_db_version < 19390 && is_main_site() ) { 1155 update_site_option( 'initial_db_version', $wp_current_db_version ); 1156 // populate_options() will handle single-site. 1157 } 1153 1158 1154 1159
Note: See TracChangeset
for help on using the changeset viewer.