Ticket #10943: taxonomy.php.diff
File taxonomy.php.diff, 902 bytes (added by , 16 years ago) |
---|
-
taxonomy.php
old new 1331 1331 * @since 2.3.0 1332 1332 * @uses $wpdb 1333 1333 * 1334 * @uses apply_filters() Calls 'pre_wp_insert_term' hook with term and taxonomy as parameters. 1334 1335 * @uses do_action() Calls 'create_term' hook with the term id and taxonomy id as parameters. 1335 1336 * @uses do_action() Calls 'create_$taxonomy' hook with term id and taxonomy id as parameters. 1336 1337 * @uses apply_filters() Calls 'term_id_filter' hook with term id and taxonomy id as parameters. … … 1348 1349 if ( ! is_taxonomy($taxonomy) ) 1349 1350 return new WP_Error('invalid_taxonomy', __('Invalid taxonomy')); 1350 1351 1352 $term = apply_filters( 'pre_wp_insert_term', $term, $taxonomy ); 1353 if ( is_wp_error( $term ) ) 1354 return $term; 1355 1351 1356 if ( is_int($term) && 0 == $term ) 1352 1357 return new WP_Error('invalid_term_id', __('Invalid term ID')); 1353 1358