Ticket #13205: 13205.3.diff
File 13205.3.diff, 727 bytes (added by , 15 years ago) |
---|
-
wp-admin/includes/nav-menu.php
262 262 's' => $query, 263 263 )); 264 264 if ( ! have_posts() ) 265 echo '-1';265 return; 266 266 while ( have_posts() ) { 267 267 the_post(); 268 268 if ( 'markup' == $response_format ) { … … 284 284 'number' => 10, 285 285 )); 286 286 if ( empty( $terms ) || is_wp_error( $terms ) ) 287 echo '-1';287 return; 288 288 foreach( (array) $terms as $term ) { 289 289 if ( 'markup' == $response_format ) { 290 290 echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', array( $term ) ), 0, (object) $args );