Changeset 3854 for branches/1.1/bb-includes/functions.bb-topic-tags.php
- Timestamp:
- 04/21/2012 12:48:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bb-includes/functions.bb-topic-tags.php
r2855 r3854 66 66 return $tt_id; 67 67 68 list($term_id, $tt_id) = $wp_taxonomy_object->insert_term( $tag, 'bb_topic_tag' ); 69 70 if ( is_wp_error($term_id) || is_wp_error($tt_id) || !$tt_id ) 68 $term = $wp_taxonomy_object->insert_term( $tag, 'bb_topic_tag' ); 69 if ( is_wp_error( $term ) ) 70 return false; 71 72 list( $term_id, $tt_id ) = $term; 73 if ( ! $tt_id ) 71 74 return false; 72 75
Note: See TracChangeset
for help on using the changeset viewer.