Add screen reader text for star ratings on Install Plugins screen.
props joedolson. fixes #28852. Built from https://develop.svn.wordpress.org/trunk@29232 git-svn-id: http://core.svn.wordpress.org/trunk@29016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f43f758197
commit
c09a48a915
|
@ -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