Changeset 13430
- Timestamp:
- 02/26/2010 07:40:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r13405 r13430 1445 1445 * @uses $wpdb 1446 1446 * 1447 * @uses apply_filters() Calls 'pre_insert_term' hook with term and taxonomy as parameters. 1447 1448 * @uses do_action() Calls 'create_term' hook with the term id and taxonomy id as parameters. 1448 1449 * @uses do_action() Calls 'create_$taxonomy' hook with term id and taxonomy id as parameters. … … 1461 1462 if ( ! is_taxonomy($taxonomy) ) 1462 1463 return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 1464 1465 $term = apply_filters( 'pre_insert_term', $term, $taxonomy ); 1466 if ( is_wp_error( $term ) ) 1467 return $term; 1463 1468 1464 1469 if ( is_int($term) && 0 == $term )
Note: See TracChangeset
for help on using the changeset viewer.