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
This commit is contained in:
Sergey Biryukov 2015-09-06 07:59:01 +00:00
parent 3853980a9a
commit 8f2b90e299
1 changed files with 5 additions and 5 deletions

View File

@ -86,14 +86,14 @@ function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) {
<?php
}
echo '<div class="sidebar-description">';
if ( ! empty( $description ) ) {
echo '<p class="description">' . $description . '</p>';
?>
<div class="sidebar-description">
<p class="description"><?php echo $description; ?></p>
</div>
<?php
}
echo '</div>';
dynamic_sidebar( $sidebar );
echo '</div>';