[wp-trac] [WordPress Trac] #35206: Allow theme authors to control white space between menu items

WordPress Trac noreply at wordpress.org
Wed Sep 7 11:25:38 UTC 2016


#35206: Allow theme authors to control white space between menu items
---------------------------+----------------------------
 Reporter:  peterwilsoncc  |       Owner:  peterwilsoncc
     Type:  enhancement    |      Status:  reopened
 Priority:  normal         |   Milestone:  4.7
Component:  Menus          |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-docs     |     Focuses:  template
---------------------------+----------------------------

Comment (by peterwilsoncc):

 Replying to [comment:33 afercia]:
 > Getting a notice, reproduced on two different installs:
 > `Notice: Undefined property: stdClass::$item_spacing in /srv/www
 /wordpress-develop/src/wp-includes/class-walker-nav-menu.php on line 240`

 Thanks @afercia, I'll take a look over the next few hours. The easy fix is
 to add `Walker_Nav_Menu_Edit::end_el()` but that's not really the solution
 given others may extend the base class in a similar fashion for a custom
 admin.

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


More information about the wp-trac mailing list