WordPress.org

Make WordPress Core

Changeset 10803


Ignore:
Timestamp:
03/17/09 16:42:21 (5 years ago)
Author:
ryan
Message:

Check if error. Props simonwheatley. fixes #9345

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r10730 r10803  
    15621562    // First, get all of the original args 
    15631563    $term = get_term ($term_id, $taxonomy, ARRAY_A); 
     1564 
     1565    if ( is_wp_error( $term ) ) 
     1566        return $term; 
    15641567 
    15651568    // Escape data pulled from DB. 
Note: See TracChangeset for help on using the changeset viewer.