Ticket #15741: 15741.2.diff
| File 15741.2.diff, 658 bytes (added by , 15 years ago) |
|---|
-
wp-includes/taxonomy.php
1984 1984 $term_id = (int) $wpdb->insert_id; 1985 1985 } elseif ( $exists = term_exists( (int) $term_id, $taxonomy ) ) { 1986 1986 // Same name, same slug. 1987 return new WP_Error('term_exists', __('A term with the nameprovided already exists.'), $exists['term_id']);1987 return new WP_Error('term_exists', __('A term with the slug provided already exists.'), $exists['term_id']); 1988 1988 } 1989 1989 } else { 1990 1990 // This term does not exist at all in the database, Create it.