diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css index 7adf9f4386..495c49b2fd 100644 --- a/src/wp-admin/css/list-tables.css +++ b/src/wp-admin/css/list-tables.css @@ -1287,16 +1287,9 @@ ul.cat-checklist { } .wp-list-table.plugins .plugin-title, -.wp-list-table.plugins .theme-title { - white-space: nowrap; -} - .wp-list-table.plugins .theme-title { padding-right: 12px; -} - -.wp-list-table.plugins .plugin-title { - padding-right: 86px; /* 64 (icon width) + 10 (icon padding) + 12 (title padding) = 86 */ + white-space: nowrap; } .plugins .plugin-title img, @@ -1308,7 +1301,11 @@ ul.cat-checklist { } .plugins .plugin-title .dashicons:before { - font-size: 64px; + padding: 2px; + background-color: #eee; + box-shadow: inset 0 0 10px rgba(160,165,170,.15); + font-size: 60px; + color: #B4B9BE; } #update-themes-table .plugin-title img, diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php index 6687739657..2cc6c77df1 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/wp-admin/includes/class-wp-plugins-list-table.php @@ -751,17 +751,9 @@ class WP_Plugins_List_Table extends WP_List_Table { echo "$checkbox"; break; case 'name': - $icon = ''; - if ( ! empty( $plugin_data['icons']['default'] ) ) { - $icon = ''; - } - ?> - - - - row_actions( $actions, true ); ?> - - $plugin_name"; + echo $this->row_actions( $actions, true ); + echo ""; break; case 'description': $classes = 'column-description desc'; diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 8393e56289..02b679b91e 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -253,8 +253,12 @@ function list_plugin_updates() { $plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true ); $icon = ''; - if ( ! empty( $plugin_data->update->icons['default'] ) ) { - $icon = ''; + $preferred_icons = array( 'svg', '1x', '2x', 'default' ); + foreach ( $preferred_icons as $preferred_icon ) { + if ( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) { + $icon = ''; + break; + } } // Get plugin compat for running version of WordPress.