Making WordPress.org


Ignore:
Timestamp:
04/30/2024 07:07:26 AM (5 months ago)
Author:
dd32
Message:

Plugin Directory: Add an empty alt tag to plugin icons, move the plugin icon into the title link, and mark the remaining dashicon as aria-hidden.

Prpos sabernhardt.
Merges https://github.com/WordPress/wordpress.org/pull/136.
See #4730.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r13620 r13626  
    402402
    403403                if ( $icon_2x && $icon_2x !== $icon ) {
    404                     return "<img class='plugin-icon' srcset='{$icon}, {$icon_2x} 2x' src='{$icon_2x}'>";
     404                    return "<img class='plugin-icon' srcset='{$icon}, {$icon_2x} 2x' src='{$icon_2x}' alt=''>";
    405405                } else {
    406                     return "<img class='plugin-icon' src='{$icon}'>";
     406                    return "<img class='plugin-icon' src='{$icon}' alt=''>";
    407407                }
    408408                break;
Note: See TracChangeset for help on using the changeset viewer.