WordPress.org

Make WordPress Core

Changeset 42979


Ignore:
Timestamp:
04/16/2018 12:12:03 AM (15 months ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r42785 r42979  
    266266
    267267    $icon            = '<span class="dashicons dashicons-admin-plugins"></span>';
    268     $preferred_icons = array( 'svg', '1x', '2x', 'default' );
     268    $preferred_icons = array( 'svg', '2x', '1x', 'default' );
    269269    foreach ( $preferred_icons as $preferred_icon ) {
    270270        if ( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.