diff --git wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
index ad028ba5e..4423078fc 100644
|
|
class Template { |
504 | 504 | |
505 | 505 | switch ( $output ) { |
506 | 506 | case 'html': |
| 507 | $alt_text = sprintf( __( 'The %s plugin logo', 'wporg-plugins' ), get_the_title( $plugin ) ); |
507 | 508 | |
508 | 509 | if ( $icon_2x && $icon_2x !== $icon ) { |
509 | | return "<img class='plugin-icon' srcset='{$icon}, {$icon_2x} 2x' src='{$icon_2x}'>"; |
| 510 | return "<img class='plugin-icon' srcset='{$icon}, {$icon_2x} 2x' src='{$icon_2x}' alt='{$alt_text}'>"; |
510 | 511 | } else { |
511 | | return "<img class='plugin-icon' src='{$icon}'>"; |
| 512 | return "<img class='plugin-icon' src='{$icon}' alt='{$alt_text}'>"; |
512 | 513 | } |
513 | 514 | break; |
514 | 515 | |