Widgets: Don't display sidebar description container if it's empty.

Props paulwilde.
Fixes #32448.
Built from https://develop.svn.wordpress.org/trunk@33934


git-svn-id: http://core.svn.wordpress.org/trunk@33903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-09-06 07:59:24 +00:00
parent c177344508
commit a3f82f92f1
2 changed files with 6 additions and 6 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>';

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-33933';
$wp_version = '4.4-alpha-33934';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.