Make WordPress Core


Ignore:
Timestamp:
08/27/2025 12:01:59 AM (8 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.