Widgets: Correct the logic for displaying the after_widget parameter of the Archives widget.

Follow-up to [48349].

Props mukesh27, joyously.
Fixes #50609.

git-svn-id: https://develop.svn.wordpress.org/trunk@48409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-08 13:26:20 +00:00
parent 8b89be2676
commit c66bdb8b5a
4 changed files with 5 additions and 2 deletions

View File

@ -312,6 +312,7 @@ function get_search_form( $args = array() ) {
*/
$aria_label = '';
}
if ( 'html5' === $format ) {
$form = '<form role="search" ' . $aria_label . 'method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '">
<label>

View File

@ -161,13 +161,15 @@ class WP_Widget_Archives extends WP_Widget {
);
?>
</ul>
<?php if ( 'html5' === $format ) : ?>
</nav>
<?php endif; ?>
<?php
echo $args['after_widget'];
}
echo $args['after_widget'];
}
/**

View File

@ -67,7 +67,6 @@ class WP_Widget_Meta extends WP_Widget {
}
?>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>

View File

@ -125,6 +125,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
</li>
<?php endforeach; ?>
</ul>
<?php if ( 'html5' === $format ) : ?>
</nav>
<?php endif; ?>