Widgets: Remove the title attributes used in the Tag cloud widget.

- improves accessibility using an aria-label attribute to match the information conveyed visually with the one exposed to assistive technologies
- adds an option in the widget to display the item counts, consistently with what other widgets already do (Archives, Categories)

Props adamsoucie, emirpprime, Samantha Miller., MikeLittle, rianrietveld, sami.keijonen, adamsilverstein, westonruter, afercia.
See #24766.
Fixes #35566.


git-svn-id: https://develop.svn.wordpress.org/trunk@40816 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia
2017-05-22 20:23:49 +00:00
parent 5ea3c91d57
commit 9e969efb89
4 changed files with 86 additions and 34 deletions

View File

@@ -939,7 +939,7 @@ class Tests_Post extends WP_UnitTestCase {
'link' => 'edit'
) );
preg_match_all( "|href='([^']+)'|", $wp_tag_cloud, $matches );
preg_match_all( '|href="([^"]+)"|', $wp_tag_cloud, $matches );
$this->assertSame( 1, count( $matches[1] ) );
$terms = get_terms( $tax );