From c66bdb8b5aabd18b3861cdec4ab71166b98ba23f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 8 Jul 2020 13:26:20 +0000 Subject: [PATCH] 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 --- src/wp-includes/general-template.php | 1 + src/wp-includes/widgets/class-wp-widget-archives.php | 4 +++- src/wp-includes/widgets/class-wp-widget-meta.php | 1 - src/wp-includes/widgets/class-wp-widget-recent-posts.php | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 97d13c3a4c..8d6ab511fb 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -312,6 +312,7 @@ function get_search_form( $args = array() ) { */ $aria_label = ''; } + if ( 'html5' === $format ) { $form = '