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:
parent
e7b78b9292
commit
e47ab8d574
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue