Changeset 19593 for trunk/wp-admin/includes/upgrade.php
- Timestamp:
- 12/13/2011 11:45:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r19470 r19593 59 59 update_option('default_pingback_flag', 0); 60 60 61 // Create default user. 62 // being shared among blogs. 61 // Create default user. If the user already exists, the user tables are 62 // being shared among blogs. Just set the role in that case. 63 63 $user_id = username_exists($user_name); 64 64 $user_password = trim($user_password); … … 359 359 $wp_current_db_version = __get_option('db_version'); 360 360 361 // We are up-to-date. 361 // We are up-to-date. Nothing to do. 362 362 if ( $wp_db_version == $wp_current_db_version ) 363 363 return; … … 395 395 $wp_current_db_version = __get_option('db_version'); 396 396 397 // We are up-to-date. 397 // We are up-to-date. Nothing to do. 398 398 if ( $wp_db_version == $wp_current_db_version ) 399 399 return; … … 647 647 648 648 // If plugins are not stored in an array, they're stored in the old 649 // newline separated format. 649 // newline separated format. Convert to new format. 650 650 if ( !is_array( $active_plugins ) ) { 651 651 $active_plugins = explode("\n", trim($active_plugins)); … … 899 899 } 900 900 901 // < 3570 we used linkcategories. 901 // < 3570 we used linkcategories. >= 3570 we used categories and link2cat. 902 902 if ( $wp_current_db_version < 3570 ) { 903 // Create link_category terms for link categories. 903 // Create link_category terms for link categories. Create a map of link cat IDs 904 904 // to link_category terms. 905 905 $link_cat_id_map = array(); … … 1691 1691 1692 1692 // Copy files from the old locations to the site theme. 1693 // TODO: This does not copy arbitrary include dependencies. 1693 // TODO: This does not copy arbitrary include dependencies. Only the 1694 1694 // standard WP files are copied. 1695 1695 $files = array('index.php' => 'index.php', 'wp-layout.css' => 'style.css', 'wp-comments.php' => 'comments.php', 'wp-comments-popup.php' => 'comments-popup.php'); … … 1939 1939 // Upgrade versions prior to 2.9 1940 1940 if ( $wp_current_db_version < 11557 ) { 1941 // Delete duplicate options. 1941 // Delete duplicate options. Keep the option with the highest option_id. 1942 1942 $wpdb->query("DELETE o1 FROM $wpdb->options AS o1 JOIN $wpdb->options AS o2 USING (`option_name`) WHERE o2.option_id > o1.option_id"); 1943 1943
Note: See TracChangeset
for help on using the changeset viewer.