[wp-trac] [WordPress Trac] #24448: Nav menu error

WordPress Trac noreply at wordpress.org
Wed May 29 12:59:50 UTC 2013


#24448: Nav menu error
--------------------------+-----------------------------
 Reporter:  Looimaster    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 {{{
 Fatal error: Call to a member function get_queried_object() on a non-
 object in C:\wamp\www\wp\wp-includes\nav-menu-template.php on line 267
 }}}

 The code I use in header.php:


 {{{
 wp_nav_menu(array('sort_column' => 'menu_order', 'theme_location' =>
 'mobile_menu', 'menu_id' => 'mobile_app_menu'));
 }}}

 I called this 3 times and number 1 & 2 display menu but number 3 breaks
 the script. Important: it happens only on page that is set to be
 'page_for_posts' and nowhere else.

 WordPress: 3.6-beta3-24375

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24448>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list