Changeset 8759
- Timestamp:
- 08/28/2008 07:09:46 AM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update-core.php
r8645 r8759 200 200 // Might have to do upgrade in a separate step. 201 201 apply_filters('update_feedback', __('Upgrading database')); 202 // Get new db version 203 global $wp_db_version; 204 require (ABSPATH . WPINC . '/version.php'); 205 // Upgrade db 206 define('WP_INSTALLING', true); 207 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 208 wp_upgrade(); 202 $db_upgrade_url = admin_url('upgrade.php?step=upgrade_db'); 203 wp_remote_post($db_upgrade_url, array('timeout' => 60)); 209 204 210 205 // Remove working directory -
trunk/wp-admin/upgrade.php
r8645 r8759 21 21 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 22 22 23 if ( isset($_GET['step']))24 $step = (int)$_GET['step'];23 if ( isset($_GET['step']) ) 24 $step = $_GET['step']; 25 25 else 26 26 $step = 0; 27 28 // Do it. No output. 29 if ( 'upgrade_db' === $step ) { 30 wp_upgrade(); 31 die('0'); 32 } 33 34 $step = (int) $step; 35 27 36 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 28 37 ?>
Note: See TracChangeset
for help on using the changeset viewer.