WordPress.org

Make WordPress Core

Changeset 14405


Ignore:
Timestamp:
05/03/2010 08:31:34 PM (11 years ago)
Author:
nacin
Message:

Fix JS error in autocomplete. props koopersmith, see #13205.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r14404 r14405  
    263263            ));
    264264            if ( ! have_posts() )
    265                     echo '-1';
     265                return;
    266266            while ( have_posts() ) {
    267267                the_post();
     
    285285            ));
    286286            if ( empty( $terms ) || is_wp_error( $terms ) )
    287                 echo '-1';
     287                return;
    288288            foreach( (array) $terms as $term ) {
    289289                if ( 'markup' == $response_format ) {
Note: See TracChangeset for help on using the changeset viewer.