Fix upgrade theme nonce.
git-svn-id: https://develop.svn.wordpress.org/trunk@10924 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f2e9b14cb3
commit
2b03edd1a6
@ -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
Block a user