Ticket #30186: 30186.2.diff
File 30186.2.diff, 3.0 KB (added by , 6 years ago) |
---|
-
src/wp-admin/css/list-tables.css
1292 1292 1293 1293 #wpbody-content .plugins .plugin-title, 1294 1294 #wpbody-content .plugins .theme-title { 1295 white-space: nowrap; 1296 } 1297 1298 #wpbody-content .plugins .theme-title { 1295 1299 padding-right: 12px; 1296 white-space:nowrap; 1300 } 1301 1302 #wpbody-content .plugins .plugin-title { 1303 padding-right: 64px; 1304 } 1305 1306 #wpbody-content .plugins .plugin-title img, 1307 #wpbody-content .plugins .plugin-title .dashicons { 1308 float: left; 1309 margin: 0 9px 0 0; 1310 width: 64px; 1311 height: 64px; 1312 } 1313 1314 #wpbody-content .plugins .plugin-title .dashicons:before { 1315 font-size: 64px; 1297 1316 } 1298 1317 1299 1318 .updates-table-screenshot { -
src/wp-admin/includes/class-wp-plugins-list-table.php
751 751 echo "<th scope='row' class='check-column'>$checkbox</th>"; 752 752 break; 753 753 case 'name': 754 echo "<td class='plugin-title column-primary'><strong>$plugin_name</strong>"; 755 echo $this->row_actions( $actions, true ); 756 echo "</td>"; 754 $icon = '<span class="dashicons dashicons-admin-plugins"></span>'; 755 if ( ! empty( $plugin_data['icons']['default'] ) ) { 756 $icon = '<img src="' . esc_attr( $plugin_data['icons']['default'] ) . '" alt="" />'; 757 } 758 ?> 759 <td class='plugin-title column-primary'> 760 <?php echo $icon; ?> 761 <strong> 762 <?php echo $plugin_name; ?> 763 </strong> 764 <?php echo $this->row_actions( $actions, true ); ?> 765 </td> 766 <?php 757 767 break; 758 768 case 'description': 759 769 $classes = 'column-description desc'; -
src/wp-admin/update-core.php
252 252 foreach ( (array) $plugins as $plugin_file => $plugin_data ) { 253 253 $plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true ); 254 254 255 $icon = '<span class="dashicons dashicons-admin-plugins"></span>'; 256 if ( ! empty( $plugin_data->update->icons['default'] ) ) { 257 $icon = '<img src="' . esc_attr( $plugin_data->update->icons['default'] ) . '" alt="" />'; 258 } 259 255 260 // Get plugin compat for running version of WordPress. 256 261 if ( isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=') ) { 257 262 $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version); … … 302 307 ?></label> 303 308 </td> 304 309 <td class="plugin-title"><p> 310 <?php echo $icon; ?> 305 311 <strong><?php echo $plugin_data->Name; ?></strong> 306 312 <?php 307 313 /* translators: 1: plugin version, 2: new version */