WordPress.org

Make WordPress Core

Ticket #13240: dont_output_empty_title.diff

File dont_output_empty_title.diff, 468 bytes (added by ptahdunbar, 5 years ago)
  • wp-includes/default-widgets.php

     
    10571057 
    10581058                echo $args['before_widget']; 
    10591059 
    1060                 if ( isset($instance['title']) ) 
     1060                if ( !empty($instance['title']) ) 
    10611061                        echo $args['before_title'] . $instance['title'] . $args['after_title']; 
    10621062 
    10631063                wp_nav_menu( array( 'menu' => $nav_menu ) );