Make WordPress Core

Ticket #43727: 43727.diff

File 43727.diff, 1.8 KB (added by dd32, 8 years ago)
  • src/wp-admin/update-core.php

    function list_plugin_updates() { 
    253253<p><input id="upgrade-plugins" class="button" type="submit" value="<?php esc_attr_e( 'Update Plugins' ); ?>" name="upgrade" /></p>
    254254<table class="widefat updates-table" id="update-plugins-table">
    255255        <thead>
    256256        <tr>
    257257                <td class="manage-column check-column"><input type="checkbox" id="plugins-select-all" /></td>
    258258                <td class="manage-column"><label for="plugins-select-all"><?php _e( 'Select All' ); ?></label></td>
    259259        </tr>
    260260        </thead>
    261261
    262262        <tbody class="plugins">
    263263<?php
    264264foreach ( (array) $plugins as $plugin_file => $plugin_data ) {
    265265        $plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true );
    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 ] ) ) {
    271271                        $icon = '<img src="' . esc_url( $plugin_data->update->icons[ $preferred_icon ] ) . '" alt="" />';
    272272                        break;
    273273                }
    274274        }
    275275
    276276        // Get plugin compat for running version of WordPress.
    277277        if ( isset( $plugin_data->update->tested ) && version_compare( $plugin_data->update->tested, $cur_wp_version, '>=' ) ) {
    278278                $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $cur_wp_version );
    279279        } else {
    280280                $compat = '<br />' . sprintf( __( 'Compatibility with WordPress %1$s: Unknown' ), $cur_wp_version );
    281281        }
    282282        // Get plugin compat for updated version of WordPress.
    283283        if ( $core_update_version ) {