From 7f488b40961b880ce2d867c521e794e988c9601e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 8 Jul 2013 17:10:47 +0000 Subject: [PATCH] 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 --- wp-admin/includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 43cb8cf409..315f021386 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -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) ) {