$format =
apply_filters( 'navigation_widgets_format',
$format );
if ( 'html5' ===
$format ) { // 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 aria-label="' .
esc_attr( $aria_label ) . '">';
} ?>
<ul>
<?php
wp_register(); ?>
<li><?php
wp_loginout(); ?></li>
<li><a href="<?php
echo esc_url( get_bloginfo( 'rss2_url'
) ); ?>"><?php
_e( 'Entries feed'
); ?></a></li>
<li><a href="<?php
echo esc_url( get_bloginfo( 'comments_rss2_url'
) ); ?>"><?php
_e( 'Comments feed'
); ?></a></li>
<?php
/**
* Filters the "WordPress.org" list item HTML in the Meta widget.
*
* @since 3.6.0
* @since 4.9.0 Added the `$instance` parameter.
*
* @param string $html Default HTML for the WordPress.org list item.
* @param array $instance Array of settings for the current widget.
*/