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. Built from https://develop.svn.wordpress.org/trunk@42979 git-svn-id: http://core.svn.wordpress.org/trunk@42808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4b2587abda
commit
fc20505750
|
@ -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="" />';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42978';
|
||||
$wp_version = '5.0-alpha-42979';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue