[wp-trac] [WordPress Trac] #31703: Trying to get property of non-object in nav-menu.php

WordPress Trac noreply at wordpress.org
Wed Mar 25 18:58:51 UTC 2015


#31703: Trying to get property of non-object in nav-menu.php
---------------------------+-----------------------------
 Reporter:  mehulkaklotar  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Menus          |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------
Changes (by DrewAPicture):

 * milestone:  4.2 => Future Release


Comment:

 I'd be interested to know under what circumstances the `object_id`
 wouldn't be set, thereby causing `get_post()` to return null. Seems like
 we first need to identify the cause of the reported problem before we talk
 about solutions.

 Punting to future release.

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


More information about the wp-trac mailing list