Make WordPress Core

Changeset 33934

Timestamp:
09/06/2015 07:59:01 AM (9 years ago)
Author:
SergeyBiryukov
Message:

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

Props paulwilde.
Fixes #32448.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/widgets.php

    r33930 r33934  
    8787    }
    8888
    89     echo '<div class="sidebar-description">';
    90 
    9189    if ( ! empty( $description ) ) {
    92         echo '<p class="description">' . $description . '</p>';
    93     }
    94 
    95     echo '</div>';
     90        ?>
     91        <div class="sidebar-description">
     92            <p class="description"><?php echo $description; ?></p>
     93        </div>
     94        <?php
     95    }
    9696
    9797    dynamic_sidebar( $sidebar );
Note: See TracChangeset for help on using the changeset viewer.