Reinstall fix. fixes #8724 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@10346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-01-11 21:48:40 +00:00
parent e7b78b9292
commit e47ab8d574
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 ) { function do_core_upgrade( $reinstall = false ) {
global $wp_filesystem; 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)) ) if ( false === ($credentials = request_filesystem_credentials($url)) )
return; return;