From 8f2b90e2992242141d666e2eaf1a0c1078ff5911 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 6 Sep 2015 07:59:01 +0000 Subject: [PATCH] Widgets: Don't display sidebar description container if it's empty. Props paulwilde. Fixes #32448. git-svn-id: https://develop.svn.wordpress.org/trunk@33934 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/widgets.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/widgets.php b/src/wp-admin/includes/widgets.php index 898604780e..b95506b1eb 100644 --- a/src/wp-admin/includes/widgets.php +++ b/src/wp-admin/includes/widgets.php @@ -86,14 +86,14 @@ function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) { '; - if ( ! empty( $description ) ) { - echo '

' . $description . '

'; + ?> + + '; - dynamic_sidebar( $sidebar ); echo '';