From e47ab8d574c976b262f2c3ac9e037db1f112540f Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 11 Jan 2009 21:48:40 +0000 Subject: [PATCH] Reinstall fix. fixes #8724 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@10346 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index ff327006e6..258400990d 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -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;