[wp-trac] [WordPress Trac] #39564: Notice: Undefined index: item_spacing in /var/www/html/wordpress/wp-includes/class-walker-page.php on line 106

WordPress Trac noreply at wordpress.org
Tue Jan 24 23:28:15 UTC 2017


#39564: Notice: Undefined index: item_spacing in /var/www/html/wordpress/wp-
includes/class-walker-page.php on line 106
-------------------------------------+----------------------------
 Reporter:  jrswgtr                  |       Owner:  peterwilsoncc
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.7.2
Component:  Menus                    |     Version:  4.7
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+----------------------------
Changes (by peterwilsoncc):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39949"]:
 {{{
 #!CommitTicketReference repository="" revision="39949"
 Menus: Prevent notice thrown in class-walker-page.php.

 Calling `Walker_Page::walk()` directly was causing an `Undefined index:
 item_spacing` notice to be thrown, this adds an `isset()` check to prevent
 it.

 Props bhargavbhandari90.
 Fixes #39564.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39564#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list