Ticket #13205: 13205.2.diff
File 13205.2.diff, 727 bytes (added by , 15 years ago) |
---|
-
wp-admin/includes/nav-menu.php
244 244 's' => $query, 245 245 )); 246 246 if ( ! have_posts() ) 247 echo '-1';247 return; 248 248 while ( have_posts() ) { 249 249 the_post(); 250 250 if ( 'markup' == $response_format ) { … … 266 266 'number' => 10, 267 267 )); 268 268 if ( empty( $terms ) || is_wp_error( $terms ) ) 269 echo '-1';269 return; 270 270 foreach( (array) $terms as $term ) { 271 271 if ( 'markup' == $response_format ) { 272 272 echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( $term ) ), 0, (object) $args );