WordPress.org

Make WordPress Core

Ticket #16281: default-widgets-line-180.patch

File default-widgets-line-180.patch, 517 bytes (added by macbrink, 7 years ago)

patch for php notice

  • default-widgets.php

     
    177177
    178178        function widget( $args, $instance ) {
    179179                extract($args);
    180                 $title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base);
     180                $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
    181181
    182182                echo $before_widget;
    183183                if ( $title )