From 1a40a17275b5673b5dff48716b8e4a40500131c4 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 16 Apr 2018 00:12:03 +0000 Subject: [PATCH] Upgrade/Install: Use high-dpi plugin icons on update dashboard. Reorder the `$preferred_icons` array for plugins to prefer high-dpi icons (2x) over standard-dpi icons (1x). Props dd32. Fixes #43727. git-svn-id: https://develop.svn.wordpress.org/trunk@42979 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/update-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index 83ea86c784..5cf2249918 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -265,7 +265,7 @@ foreach ( (array) $plugins as $plugin_file => $plugin_data ) { $plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true ); $icon = ''; - $preferred_icons = array( 'svg', '1x', '2x', 'default' ); + $preferred_icons = array( 'svg', '2x', '1x', 'default' ); foreach ( $preferred_icons as $preferred_icon ) { if ( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) { $icon = '';