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:
parent
8b89be2676
commit
c66bdb8b5a
@ -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>
|
||||
|
@ -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'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -67,7 +67,6 @@ class WP_Widget_Meta extends WP_Widget {
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<ul>
|
||||
<?php wp_register(); ?>
|
||||
<li><?php wp_loginout(); ?></li>
|
||||
|
@ -125,6 +125,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?php if ( 'html5' === $format ) : ?>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
Loading…
Reference in New Issue
Block a user