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:
Andrew Nacin 2013-07-08 17:10:47 +00:00
parent 2b64842c3b
commit cffe32a58a
1 changed files with 1 additions and 1 deletions

View File

@ -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) ) {