Add screen reader text for star ratings on Install Plugins screen.
props joedolson. fixes #28852. git-svn-id: https://develop.svn.wordpress.org/trunk@29232 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
72916a9751
commit
218cbba634
@ -2146,6 +2146,7 @@ function wp_star_rating( $args = array() ) {
|
||||
}
|
||||
|
||||
echo '<div class="star-rating" title="' . esc_attr( $title ) . '">';
|
||||
echo '<span class="screen-reader-text">' . $title . '</span>';
|
||||
echo str_repeat( '<div class="star star-full"></div>', $full_stars );
|
||||
echo str_repeat( '<div class="star star-half"></div>', $half_stars );
|
||||
echo str_repeat( '<div class="star star-empty"></div>', $empty_stars);
|
||||
|
Loading…
Reference in New Issue
Block a user