wp/wp-includes/widgets/class-wp-widget-recent-posts.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   101 
   101 
   102 		if ( 'html5' === $format ) {
   102 		if ( 'html5' === $format ) {
   103 			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
   103 			// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
   104 			$title      = trim( strip_tags( $title ) );
   104 			$title      = trim( strip_tags( $title ) );
   105 			$aria_label = $title ? $title : $default_title;
   105 			$aria_label = $title ? $title : $default_title;
   106 			echo '<nav role="navigation" aria-label="' . esc_attr( $aria_label ) . '">';
   106 			echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
   107 		}
   107 		}
   108 		?>
   108 		?>
   109 
   109 
   110 		<ul>
   110 		<ul>
   111 			<?php foreach ( $r->posts as $recent_post ) : ?>
   111 			<?php foreach ( $r->posts as $recent_post ) : ?>