From 9cdc014f6a7a1217a54cc30599ae73acd021f1be Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 12 Apr 2009 17:32:03 +0000 Subject: [PATCH] Use stylesheet directory when deleting a theme so we don't accidentally delete a parent theme. Props ionfish. fixes #9519 git-svn-id: https://develop.svn.wordpress.org/trunk@10915 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/themes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 3b08eeb27e..ebf601d390 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -191,7 +191,7 @@ foreach ( $cols as $col => $theme_name ) { $actions[] = '' . __('Activate') . ''; $actions[] = '' . __('Preview') . ''; if ( current_user_can('update_themes') ) - $actions[] = '' . __('Delete') . ''; + $actions[] = '' . __('Delete') . ''; $actions = apply_filters('theme_action_links', $actions, $themes[$theme_name]); $actions = implode ( ' | ', $actions );