WordPress.org

Make WordPress Core

Changeset 13813


Ignore:
Timestamp:
03/25/10 17:28:16 (4 years ago)
Author:
ryan
Message:

Don't return WP_Error from term_description(). Props filosofo. fixes #12707

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r13754 r13813  
    869869        $term = $term->term_id; 
    870870    } 
    871     return get_term_field( 'description', $term, $taxonomy ); 
     871    $description = get_term_field( 'description', $term, $taxonomy ); 
     872    return is_wp_error( $description ) ? '' : $description; 
    872873} 
    873874 
Note: See TracChangeset for help on using the changeset viewer.