diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index 8d36a25001..3ec3e89e09 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -917,6 +917,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) { $tags_data[] = array( 'id' => $tag_id, 'url' => '#' != $tag->link ? $tag->link : '#', + 'role' => '#' != $tag->link ? '' : ' role="button"', 'name' => $tag->name, 'title' => $title, 'slug' => $tag->slug, @@ -940,7 +941,7 @@ function wp_generate_tag_cloud( $tags, $args = '' ) { // generate the output links array foreach ( $tags_data as $key => $tag_data ) { $class = $tag_data['class'] . ' tag-link-position-' . ( $key + 1 ); - $a[] = "" . esc_html( $tag_data['name'] ) . ""; + $a[] = "" . esc_html( $tag_data['name'] ) . ""; } switch ( $args['format'] ) {