Changeset 6125 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 09/18/2007 04:32:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r6121 r6125 392 392 $term = (int) $term; 393 393 $term = get_term( $term, $taxonomy ); 394 395 394 if ( is_wp_error($term) ) 396 395 return $term; … … 802 801 if ( is_taxonomy_hierarchical($taxonomy) ) { 803 802 $term_obj = get_term($term, $taxonomy); 803 if ( is_wp_error( $term_obj ) ) 804 return $term_obj; 804 805 $parent = $term_obj->parent; 805 806 … … 1253 1254 if ( !is_object($term) ) { 1254 1255 $term = get_term($term, $taxonomy); 1256 if ( is_wp_error( $term ) ) 1257 return $term; 1255 1258 $use_id = true; 1256 1259 }
Note: See TracChangeset
for help on using the changeset viewer.