Use correct variable when calling request_filesystem_credentials() in delete_theme(). see #24210.

git-svn-id: http://core.svn.wordpress.org/trunk@24590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-07-08 17:10:47 +00:00
parent b7b1d9e1ed
commit 7f488b4096

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