Use correct variable when calling request_filesystem_credentials() in delete_theme(). see #24210.
git-svn-id: https://develop.svn.wordpress.org/trunk@24590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b64842c3b
commit
cffe32a58a
|
@ -37,7 +37,7 @@ function delete_theme($stylesheet, $redirect = '') {
|
|||
}
|
||||
|
||||
if ( ! WP_Filesystem($credentials) ) {
|
||||
request_filesystem_credentials($url, '', true); // Failed to connect, Error and request again
|
||||
request_filesystem_credentials($redirect, '', true); // Failed to connect, Error and request again
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
if ( ! empty($data) ) {
|
||||
|
|
Loading…
Reference in New Issue