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

Follow-up to [48349].

Props mukesh27, joyously.
Fixes #50609.
Built from https://develop.svn.wordpress.org/trunk@48409


git-svn-id: http://core.svn.wordpress.org/trunk@48178 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-08 13:28:03 +00:00
parent 6bf6bc451f
commit 6fc76c162d
5 changed files with 6 additions and 3 deletions

View File

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

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-beta1-48408'; $wp_version = '5.5-beta1-48409';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

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

View File

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

View File

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