From ee30b9071435cedf1e538bd97f60a603e78c7b99 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sat, 30 Apr 2016 14:32:40 +0000 Subject: [PATCH] Accessibility: improve the Star Ratings hiding empty elements for assistive technologies. Fixes #36725. git-svn-id: https://develop.svn.wordpress.org/trunk@37330 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 6503e74d7e..410c980cd2 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -2071,9 +2071,9 @@ function wp_star_rating( $args = array() ) { $output = '
'; $output .= '' . $title . ''; - $output .= str_repeat( '
', $full_stars ); - $output .= str_repeat( '
', $half_stars ); - $output .= str_repeat( '
', $empty_stars ); + $output .= str_repeat( '', $full_stars ); + $output .= str_repeat( '', $half_stars ); + $output .= str_repeat( '', $empty_stars ); $output .= '
'; if ( $r['echo'] ) {