mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Plugins: Tweak the plugin icons added in [41695].
- Remove plugins icons from the plugin list table, as there were performance issues loading the icons when the site had lots of plugins. - Depending on which icons the plugin has uploaded, prefer them in this order: `svg`, `128x128`, `256x256`. - Improve the style of the fallback icon for plugins that don't have an icon defined. Props Travel_girl, danieltj, afercia, karmatosed,hugobaeta, empireoflight, brentjett, melchoyce, pento. Fixes #30186. git-svn-id: https://develop.svn.wordpress.org/trunk@41755 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -751,17 +751,9 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
echo "<th scope='row' class='check-column'>$checkbox</th>";
|
||||
break;
|
||||
case 'name':
|
||||
$icon = '<span class="dashicons dashicons-admin-plugins"></span>';
|
||||
if ( ! empty( $plugin_data['icons']['default'] ) ) {
|
||||
$icon = '<img src="' . esc_url( $plugin_data['icons']['default'] ) . '" alt="" />';
|
||||
}
|
||||
?>
|
||||
<td class="plugin-title column-primary">
|
||||
<?php echo $icon; ?>
|
||||
<strong><?php echo $plugin_name; ?></strong>
|
||||
<?php echo $this->row_actions( $actions, true ); ?>
|
||||
</td>
|
||||
<?php
|
||||
echo "<td class='plugin-title column-primary'><strong>$plugin_name</strong>";
|
||||
echo $this->row_actions( $actions, true );
|
||||
echo "</td>";
|
||||
break;
|
||||
case 'description':
|
||||
$classes = 'column-description desc';
|
||||
|
||||
Reference in New Issue
Block a user