Ticket #13481: 13481.diff
| File 13481.diff, 714 bytes (added by , 16 years ago) |
|---|
-
wp-includes/taxonomy.php
1626 1626 if ( false === $wpdb->insert( $wpdb->terms, compact( 'name', 'slug', 'term_group' ) ) ) 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 { 1631 1634 // This term does not exist at all in the database, Create it.