[wp-trac] [WordPress Trac] #26287: Bug when removing a menu when still attached to a location

WordPress Trac noreply at wordpress.org
Wed Nov 27 13:21:02 UTC 2013


#26287: Bug when removing a menu when still attached to a location
-------------------------------+------------------------------
 Reporter:  nielsvanrenselaar  |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Menus              |     Version:  3.7.1
 Severity:  minor              |  Resolution:
 Keywords:                     |
-------------------------------+------------------------------

Comment (by nielsvanrenselaar):

 Replying to [ticket:26287 nielsvanrenselaar]:
 > When creating a menu and adding it to a location trough the checkboxes
 it raises an error when this menu get's removed but still is connected to
 the location:
 >
 > Notice: Trying to get property of non-object in wp-includes/nav-menu.php
 on line 597 Notice: Trying to get property of non-object in wp-includes
 /nav-menu.php on line 597
 >
 > In the menu dropdown there is also "empty" slots with comma's, see it's
 still somewhere in the database.
 >


 Sorry, I mean it occurs when you remove the location from i.e. your
 functions.php. Not when you remove the menu but when the menu is still
 connected to that location!

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


More information about the wp-trac mailing list