Changeset 41755
- Timestamp:
- 10/04/2017 11:42:55 PM (7 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/list-tables.css
r41695 r41755 1289 1289 .wp-list-table.plugins .plugin-title, 1290 1290 .wp-list-table.plugins .theme-title { 1291 padding-right: 12px; 1291 1292 white-space: nowrap; 1292 }1293 1294 .wp-list-table.plugins .theme-title {1295 padding-right: 12px;1296 }1297 1298 .wp-list-table.plugins .plugin-title {1299 padding-right: 86px; /* 64 (icon width) + 10 (icon padding) + 12 (title padding) = 86 */1300 1293 } 1301 1294 … … 1309 1302 1310 1303 .plugins .plugin-title .dashicons:before { 1311 font-size: 64px; 1304 padding: 2px; 1305 background-color: #eee; 1306 box-shadow: inset 0 0 10px rgba(160,165,170,.15); 1307 font-size: 60px; 1308 color: #B4B9BE; 1312 1309 } 1313 1310 -
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r41695 r41755 752 752 break; 753 753 case 'name': 754 $icon = '<span class="dashicons dashicons-admin-plugins"></span>'; 755 if ( ! empty( $plugin_data['icons']['default'] ) ) { 756 $icon = '<img src="' . esc_url( $plugin_data['icons']['default'] ) . '" alt="" />'; 757 } 758 ?> 759 <td class="plugin-title column-primary"> 760 <?php echo $icon; ?> 761 <strong><?php echo $plugin_name; ?></strong> 762 <?php echo $this->row_actions( $actions, true ); ?> 763 </td> 764 <?php 754 echo "<td class='plugin-title column-primary'><strong>$plugin_name</strong>"; 755 echo $this->row_actions( $actions, true ); 756 echo "</td>"; 765 757 break; 766 758 case 'description': -
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.