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
This commit is contained in:
parent
2bfc2ac802
commit
caa38f816f
|
@ -191,7 +191,7 @@ foreach ( $cols as $col => $theme_name ) {
|
|||
$actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' . $activate_text . '">' . __('Activate') . '</a>';
|
||||
$actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attribute_escape(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>';
|
||||
if ( current_user_can('update_themes') )
|
||||
$actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url("themes.php?action=delete&template=$template", 'delete-theme_' . $template) . '" onclick="' . "if ( confirm('" . js_escape(sprintf( __("You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete."), $theme_name )) . "') ) {return true;}return false;" . '">' . __('Delete') . '</a>';
|
||||
$actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url("themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet) . '" onclick="' . "if ( confirm('" . js_escape(sprintf( __("You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete."), $theme_name )) . "') ) {return true;}return false;" . '">' . __('Delete') . '</a>';
|
||||
$actions = apply_filters('theme_action_links', $actions, $themes[$theme_name]);
|
||||
|
||||
$actions = implode ( ' | ', $actions );
|
||||
|
|
Loading…
Reference in New Issue