[wp-trac] [WordPress Trac] #22867: Function wp_get_nav_menu_items - Fatal error - Wordpress 3.5 and earlier

WordPress Trac noreply at wordpress.org
Tue Dec 11 23:38:52 UTC 2012


#22867: Function wp_get_nav_menu_items - Fatal error - Wordpress 3.5 and earlier
--------------------------+------------------------------
 Reporter:  sporky        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Menus         |     Version:  3.5
 Severity:  critical      |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 `$wp_rewrite` is set after plugins are loaded.

 You're probably calling `wp_get_nav_menu_items()` too early. That code
 needs to wait at least until the `init` action runs.

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


More information about the wp-trac mailing list