From caa38f816f11d44f5955d00635b701c829b9b32a Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@10915 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 );