Changeset 41755 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 10/04/2017 11:42:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r41695 r41755 254 254 255 255 $icon = '<span class="dashicons dashicons-admin-plugins"></span>'; 256 if ( ! empty( $plugin_data->update->icons['default'] ) ) { 257 $icon = '<img src="' . esc_url( $plugin_data->update->icons['default'] ) . '" alt="" />'; 256 $preferred_icons = array( 'svg', '1x', '2x', 'default' ); 257 foreach ( $preferred_icons as $preferred_icon ) { 258 if ( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) { 259 $icon = '<img src="' . esc_url( $plugin_data->update->icons[ $preferred_icon ] ) . '" alt="" />'; 260 break; 261 } 258 262 } 259 263
Note: See TracChangeset
for help on using the changeset viewer.