Changeset 14784
- Timestamp:
- 05/21/2010 06:03:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r14783 r14784 1627 1627 return new WP_Error('db_insert_error', __('Could not insert term into the database'), $wpdb->last_error); 1628 1628 $term_id = (int) $wpdb->insert_id; 1629 } elseif ( is_term( (int) $term_id, $taxonomy ) ) { 1630 // Same name, same slug. 1631 return new WP_Error('term_exists', __('A term with the name provided already exists.')); 1629 1632 } 1630 1633 } else {
Note: See TracChangeset
for help on using the changeset viewer.