[wp-trac] [WordPress Trac] #37026: PHP Notice: Trying to get property of non-object in wp-admin\nav-menus.php on line 836

WordPress Trac noreply at wordpress.org
Thu Jun 9 06:03:31 UTC 2016


#37026: PHP Notice:  Trying to get property of non-object in wp-admin\nav-menus.php
on line 836
--------------------------+------------------------------
 Reporter:  skylarkcob    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  4.5.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by Frozzare):

 * keywords:   => has-patch


Comment:

 Added a condition checking if the menu can be used before it's used. This
 condition exists in other places in the core when `wp_get_nav_menu_object`
 is used.

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


More information about the wp-trac mailing list