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:
Sergey Biryukov 2014-07-18 23:40:43 +00:00
parent 72916a9751
commit 218cbba634
1 changed files with 1 additions and 0 deletions

View File

@ -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);