Upgrade db with remote post during core update. see #5560

git-svn-id: http://svn.automattic.com/wordpress/trunk@8759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-08-28 07:09:46 +00:00
parent bcdb29372d
commit 42ceb32c0b
2 changed files with 13 additions and 9 deletions
+11 -2
View File
@@ -20,10 +20,19 @@ require('../wp-load.php');
timer_start();
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
if (isset($_GET['step']))
$step = (int) $_GET['step'];
if ( isset($_GET['step']) )
$step = $_GET['step'];
else
$step = 0;
// Do it. No output.
if ( 'upgrade_db' === $step ) {
wp_upgrade();
die('0');
}
$step = (int) $step;
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">