[wp-trac] [WordPress Trac] #18595: Undefined index in WP_Widget_Search

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 5 11:45:22 UTC 2011


#18595: Undefined index in WP_Widget_Search
----------------------------+-----------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  3.3
Component:  Widgets         |    Version:  3.3
 Severity:  minor           |   Keywords:  has-patch
----------------------------+-----------------------
 While switching themes and moving around widgets for #17979, at some point
 I noticed that adding a Search widget results in error on the frontend:
 {{{
 Notice: Undefined index: title in wp-includes/default-widgets.php on line
 180
 }}}
 I can't reproduce the issue again, but
 [http://www.google.com/search?q=%22Undefined+index%3A+title%22+%22wp-
 includes%2Fdefault-widgets.php+on+line+180%22 Google shows thousands of
 results] with this exact message.

 Most of the default widgets already have `empty()` checks for title, so
 WP_Widget_Search and WP_Nav_Menu_Widget should have them too.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18595>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list