WordPress.org

Making WordPress.org

Changeset 9238


Ignore:
Timestamp:
10/25/2019 03:12:10 AM (5 months ago)
Author:
dd32
Message:

Plugin Directory: Plugin Icons: Use the 2x srcset format instead.

See #4730.

File:
1 edited

Legend:

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

    r9236 r9238  
    507507
    508508                if ( $icon_2x && $icon_2x !== $icon ) {
    509                     return "<img class='plugin-icon' srcset='{$icon_2x} 256w' src='{$icon}'>";
     509                    return "<img class='plugin-icon' srcset='{$icon}, {$icon_2x} 2x' src='{$icon_2x}'>";
    510510                } else {
    511511                    return "<img class='plugin-icon' src='{$icon}'>";
Note: See TracChangeset for help on using the changeset viewer.