Ticket #27042: nav-menu.php.37802.patch
File nav-menu.php.37802.patch, 573 bytes (added by , 8 years ago) |
---|
-
nav-menu.php
78 78 if ( ! have_posts() ) 79 79 return; 80 80 while ( have_posts() ) { 81 the_post(); 81 global $post; 82 global $wp_query; 83 $post = $wp_query->next_post(); 84 setup_postdata( $post ); 82 85 if ( 'markup' == $response_format ) { 83 86 $var_by_ref = get_the_ID(); 84 87 echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( get_post( $var_by_ref ) ) ), 0, (object) $args );