Reinstall fix. fixes #8724 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@10346 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-01-11 21:48:40 +00:00
parent 45a972e7ee
commit 23d722d40a
1 changed files with 5 additions and 1 deletions

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;