WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/26/2015 12:47:35 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Remove redundant title attribute from wp_star_rating(). Hide the visible number of ratings from assistive technologies.

This data is redundant, as the same information is already conveyed by the text hidden with .screen-reader-text class.

Props afercia.
Fixes #35141.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-install.php

    r35977 r36092  
    260260                        <div class="theme-rating">
    261261                            {{{ data.stars }}}
    262                             <span class="num-ratings">({{ data.num_ratings }})</span>
     262                            <span class="num-ratings" aria-hidden="true">({{ data.num_ratings }})</span>
    263263                        </div>
    264264                    <# } else { #>
Note: See TracChangeset for help on using the changeset viewer.