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:
parent
3853980a9a
commit
8f2b90e299
|
@ -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>';
|
||||
|
|
Loading…
Reference in New Issue