[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
Wed Jan 25 02:54:41 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:  dd32
     Type:  defect (bug)                  |      Status:  assigned
 Priority:  normal                        |   Milestone:  4.7.2
Component:  Menus                         |     Version:  4.7
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-----------------------

Comment (by bhargavbhandari90):

 Thank you @peterwilsoncc
 Replying to [comment:10 peterwilsoncc]:
 > 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:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list