wp/wp-includes/widgets/class-wp-widget-tag-cloud.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
--- a/wp/wp-includes/widgets/class-wp-widget-tag-cloud.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/widgets/class-wp-widget-tag-cloud.php	Tue Sep 27 16:37:53 2022 +0200
@@ -53,6 +53,8 @@
 			}
 		}
 
+		$default_title = $title;
+
 		$show_count = ! empty( $instance['count'] );
 
 		$tag_cloud = wp_tag_cloud(
@@ -100,7 +102,7 @@
 			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
 			$title      = trim( strip_tags( $title ) );
 			$aria_label = $title ? $title : $default_title;
-			echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
+			echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
 		}
 
 		echo '<div class="tagcloud">';