mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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:
parent
c177344508
commit
a3f82f92f1
@ -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>';
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user