Fix upgrade theme nonce.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e3acc800f8
commit
30f16a34a7
|
@ -82,7 +82,7 @@ function do_plugin_upgrade($plugin) {
|
|||
function do_theme_upgrade($theme) {
|
||||
global $wp_filesystem;
|
||||
|
||||
$url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($theme), 'upgrade-plugin_' . urlencode($theme));
|
||||
$url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($theme), 'upgrade-theme_' . urlencode($theme));
|
||||
if ( false === ($credentials = request_filesystem_credentials($url)) )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue