Reinstall fix. fixes #8724 for 2.7

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-01-11 21:48:55 +00:00
parent 7194e1e88a
commit 024dee654b

View File

@ -134,7 +134,11 @@ function core_upgrade_preamble() {
function do_core_upgrade( $reinstall = false ) {
global $wp_filesystem;
$url = wp_nonce_url('update-core.php?action=do-core-upgrade', 'upgrade-core');
if ( $reinstall )
$url = 'update-core.php?action=do-core-reinstall';
else
$url = 'update-core.php?action=do-core-upgrade';
$url = wp_nonce_url($url, 'upgrade-core');
if ( false === ($credentials = request_filesystem_credentials($url)) )
return;