mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
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:
parent
b7b1d9e1ed
commit
7f488b4096
@ -37,7 +37,7 @@ function delete_theme($stylesheet, $redirect = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( ! WP_Filesystem($credentials) ) {
|
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();
|
$data = ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
if ( ! empty($data) ) {
|
if ( ! empty($data) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user