[wp-trac] Re: [WordPress Trac] #10225: Various php notices in default-widgets.php

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 25 00:04:37 GMT 2009


#10225: Various php notices in default-widgets.php
------------------------------+---------------------------------------------
 Reporter:  mrmist            |        Type:  defect (bug)    
   Status:  new               |    Priority:  normal          
Milestone:  2.9               |   Component:  Warnings/Notices
  Version:  2.9               |    Severity:  minor           
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------

Comment(by Mittineague):

 I got an E_NOTICE with (with my version of a fix)
 {{{
 class WP_Widget_Search extends WP_Widget {
 .....
         function widget( $args, $instance ) {
 .....
 //              $title = apply_filters('widget_title',
 $instance['title']);
                 $title = apply_filters('widget_title',
 empty($instance['title']) ? __('Search') : $instance['title']);
 }}}
 And I haven't figured out how to fix this one yet
 {{{
 class WP_Widget_Text extends WP_Widget {
 .....
         function widget( $args, $instance ) {
 }}}
 which has an index not defined for $instance['filter']

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10225#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list