WordPress.org

Make WordPress Core

Ticket #12949: menus_fatal_error_bug.diff

File menus_fatal_error_bug.diff, 569 bytes (added by ptahdunbar, 9 years ago)
  • wp-admin/includes/nav-menu.php

     
    247247        // @todo transient caching of these results with proper invalidation on updating of a tax of this type
    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
    253253        $term_names = '';