Make WordPress Core

Changeset 60680


Ignore:
Timestamp:
08/27/2025 12:01:59 AM (5 months ago)
Author:
helen
Message:

Plugins: Ensure only plugin icons are floated.

There's no reason not to add a semantic class to the plugin icons on the update screen instead of making our CSS more complex, so let's do that and ensure that the existing .plugin-icon styles are scoped to .plugin-card on the install screen.

Partially reverts [60673].
Fixes #63120.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/list-tables.css

    r60673 r60680  
    13161316/* modified for the emoji */
    13171317.plugins .plugin-title .dashicons,
    1318 .plugins .plugin-title img.dashicons,
    1319 .plugins .plugin-title img[class*="icon"],
    1320 .plugins .plugin-title img[src*="data:image"] {
     1318.plugins .plugin-title img.plugin-icon {
    13211319    float: left;
    13221320    padding: 0 10px 0 0;
     
    17421740}
    17431741
    1744 .plugin-icon {
     1742.plugin-card .plugin-icon {
    17451743    position: absolute;
    17461744    top: 20px;
  • trunk/src/wp-admin/update-core.php

    r59159 r60680  
    519519        foreach ( $preferred_icons as $preferred_icon ) {
    520520            if ( ! empty( $plugin_data->update->icons[ $preferred_icon ] ) ) {
    521                 $icon = '<img src="' . esc_url( $plugin_data->update->icons[ $preferred_icon ] ) . '" alt="" />';
     521                $icon = '<img src="' . esc_url( $plugin_data->update->icons[ $preferred_icon ] ) . '" alt="" class="plugin-icon" />';
    522522                break;
    523523            }
Note: See TracChangeset for help on using the changeset viewer.