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
This commit is contained in:
parent
1af1f65a21
commit
1a40a17275
|
@ -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 = '<span class="dashicons dashicons-admin-plugins"></span>';
|
||||
$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 = '<img src="' . esc_url( $plugin_data->update->icons[ $preferred_icon ] ) . '" alt="" />';
|
||||
|
|
Loading…
Reference in New Issue