[wp-trac] [WordPress Trac] #23051: Menu with navigation label '0' gets removed

WordPress Trac noreply at wordpress.org
Fri May 10 17:53:31 UTC 2013


#23051: Menu with navigation label '0' gets removed
-------------------------------------+------------------
 Reporter:  zsero                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.6
Component:  Menus                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by SergeyBiryukov):

 I think we should have `isset()` in some of those checks.

 [attachment:23051.3.diff] also simplifies the logic in
 `wp_update_nav_menu_item()`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23051#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list