diff --git a/wp-admin/css/wp-admin.dev.css b/wp-admin/css/wp-admin.dev.css index 18cd3e117..f3e0e1819 100644 --- a/wp-admin/css/wp-admin.dev.css +++ b/wp-admin/css/wp-admin.dev.css @@ -4312,6 +4312,40 @@ h3.available-themes { .available-theme .action-links { margin-top: 10px; + overflow: hidden; +} + +.available-theme .action-links li { + float: left; + padding-right: 10px; + margin-right: 10px; + border-right: 1px solid #dfdfdf; +} + +.available-theme .action-links li:last-child { + padding-right: 0; + margin-right: 0; + border-right: 0; +} + +.available-theme .action-links .delete-theme { + float: right; + margin-right: 0; +} + +.available-theme .action-links .delete-theme a { + color: red; + padding: 2px; +} + +.available-theme .action-links .delete-theme a:hover { + background: red; + color: #fff; + text-decoration: none; +} + +.available-theme .action-links p { + float: left; } #current-theme { diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index a148212c1..b81461b03 100644 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ b/wp-admin/includes/class-wp-themes-list-table.php @@ -141,13 +141,14 @@ class WP_Themes_List_Table extends WP_List_Table { . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '">' . __( 'Preview' ) . '' . '' . __( 'Customize' ) . ''; if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) - $actions[] = '' . __( 'Delete' ) . ''; - $actions = apply_filters( 'theme_action_links', $actions, $theme ); + $actions = apply_filters( 'theme_action_links', $actions, $theme ); + $delete_action = isset( $actions['delete'] ) ? '
' . $actions['delete'] . '
' : ''; + unset( $actions['delete'] ); - $actions = implode ( ' | ', $actions ); ?> > get_screenshot() ) : ?> @@ -157,8 +158,15 @@ class WP_Themes_List_Table extends WP_List_Table {

@@ -175,8 +183,6 @@ class WP_Themes_List_Table extends WP_List_Table {
- -