mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user