mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 06:36:47 +01:00
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:
parent
7194e1e88a
commit
024dee654b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user