WordPress.org

Make WordPress Core

Changeset 14048


Ignore:
Timestamp:
04/10/10 10:47:31 (4 years ago)
Author:
nacin
Message:

Account for WP_Error from get_terms() in the nav menu tax metabox. fixes #12949, props ptahdunbar.

File:
1 edited

Legend:

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

    r14031 r14048  
    248248    $terms = get_terms( $taxonomy['args']->name, $args ); 
    249249 
    250     if ( !$terms ) 
     250    if ( !$terms || is_wp_error($terms) ) 
    251251        $error = '<li id="error">'. sprintf( __( 'No %s exists' ), $taxonomy['args']->label ) .'</li>'; 
    252252 
Note: See TracChangeset for help on using the changeset viewer.