Widgets: Adjust formatting for displaying the closing </nav>
tag in widgets for consistency with the opening tag.
Follow-up to [48349]. See #48170. git-svn-id: https://develop.svn.wordpress.org/trunk@48410 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c66bdb8b5a
commit
c3993eb19d
@ -162,11 +162,10 @@ class WP_Widget_Archives extends WP_Widget {
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<?php if ( 'html5' === $format ) : ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( 'html5' === $format ) {
|
||||
echo '</nav>';
|
||||
}
|
||||
}
|
||||
|
||||
echo $args['after_widget'];
|
||||
|
@ -140,11 +140,10 @@ class WP_Widget_Categories extends WP_Widget {
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<?php if ( 'html5' === $format ) : ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( 'html5' === $format ) {
|
||||
echo '</nav>';
|
||||
}
|
||||
}
|
||||
|
||||
echo $args['after_widget'];
|
||||
|
@ -98,11 +98,11 @@ class WP_Widget_Meta extends WP_Widget {
|
||||
|
||||
</ul>
|
||||
|
||||
<?php if ( 'html5' === $format ) : ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( 'html5' === $format ) {
|
||||
echo '</nav>';
|
||||
}
|
||||
|
||||
echo $args['after_widget'];
|
||||
}
|
||||
|
||||
|
@ -108,11 +108,11 @@ class WP_Widget_Pages extends WP_Widget {
|
||||
<?php echo $out; ?>
|
||||
</ul>
|
||||
|
||||
<?php if ( 'html5' === $format ) : ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( 'html5' === $format ) {
|
||||
echo '</nav>';
|
||||
}
|
||||
|
||||
echo $args['after_widget'];
|
||||
}
|
||||
}
|
||||
|
@ -126,11 +126,11 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php if ( 'html5' === $format ) : ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if ( 'html5' === $format ) {
|
||||
echo '</nav>';
|
||||
}
|
||||
|
||||
echo $args['after_widget'];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user