[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 Feb 21 01:38: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:  dd32
     Type:  defect (bug)                  |      Status:  assigned
 Priority:  normal                        |   Milestone:  4.7.3
Component:  Menus                         |     Version:  4.7
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-----------------------

Comment (by dd32):

 > It looks like the behaviour has changed when the walker is called
 directly rather than via wp_list_pages() and related functions. I'm
 inclined to leave it as it's an edge case and, arguably, ill advised.

 I'm inclined to agree, the only thing that I can think of is the case
 where you've extended the Walker with a custom class. However, in that
 case you should still be using `wp_list_pages()` and passing the `walker`
 arg.
 I'm fine with leaving this as-is then.

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


More information about the wp-trac mailing list