mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -87,9 +87,6 @@ function delete_theme($template) {
|
||||
return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress theme directory.'));
|
||||
|
||||
$themes_dir = trailingslashit( $themes_dir );
|
||||
|
||||
$errors = array();
|
||||
|
||||
$theme_dir = trailingslashit($themes_dir . $template);
|
||||
$deleted = $wp_filesystem->delete($theme_dir, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user