WordPress.org

Make WordPress Core

Ticket #36725: 36725.diff

File 36725.diff, 932 bytes (added by afercia, 4 years ago)
  • src/wp-admin/includes/template.php

     
    20712071
    20722072        $output = '<div class="star-rating">';
    20732073        $output .= '<span class="screen-reader-text">' . $title . '</span>';
    2074         $output .= str_repeat( '<div class="star star-full"></div>', $full_stars );
    2075         $output .= str_repeat( '<div class="star star-half"></div>', $half_stars );
    2076         $output .= str_repeat( '<div class="star star-empty"></div>', $empty_stars );
     2074        $output .= str_repeat( '<div class="star star-full" aria-hidden="true"></div>', $full_stars );
     2075        $output .= str_repeat( '<div class="star star-half" aria-hidden="true"></div>', $half_stars );
     2076        $output .= str_repeat( '<div class="star star-empty" aria-hidden="true"></div>', $empty_stars );
    20772077        $output .= '</div>';
    20782078
    20792079        if ( $r['echo'] ) {