mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Accessibility: improve the Star Ratings hiding empty elements for assistive technologies.
Fixes #36725. Built from https://develop.svn.wordpress.org/trunk@37330 git-svn-id: http://core.svn.wordpress.org/trunk@37296 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
96104fdd30
commit
93c8cdbaed
@ -2071,9 +2071,9 @@ function wp_star_rating( $args = array() ) {
|
||||
|
||||
$output = '<div class="star-rating">';
|
||||
$output .= '<span class="screen-reader-text">' . $title . '</span>';
|
||||
$output .= str_repeat( '<div class="star star-full"></div>', $full_stars );
|
||||
$output .= str_repeat( '<div class="star star-half"></div>', $half_stars );
|
||||
$output .= str_repeat( '<div class="star star-empty"></div>', $empty_stars );
|
||||
$output .= str_repeat( '<div class="star star-full" aria-hidden="true"></div>', $full_stars );
|
||||
$output .= str_repeat( '<div class="star star-half" aria-hidden="true"></div>', $half_stars );
|
||||
$output .= str_repeat( '<div class="star star-empty" aria-hidden="true"></div>', $empty_stars );
|
||||
$output .= '</div>';
|
||||
|
||||
if ( $r['echo'] ) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37329';
|
||||
$wp_version = '4.6-alpha-37330';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user