mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
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:
parent
6bf6bc451f
commit
6fc76c162d
@ -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>
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @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.
|
||||
|
@ -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