Make WordPress Core

Ticket #15741: 15741.2.diff

File 15741.2.diff, 658 bytes (added by designsimply, 15 years ago)
  • wp-includes/taxonomy.php

     
    19841984                        $term_id = (int) $wpdb->insert_id;
    19851985                } elseif ( $exists = term_exists( (int) $term_id, $taxonomy ) )  {
    19861986                        // Same name, same slug.
    1987                         return new WP_Error('term_exists', __('A term with the name provided already exists.'), $exists['term_id']);
     1987                        return new WP_Error('term_exists', __('A term with the slug provided already exists.'), $exists['term_id']);
    19881988                }
    19891989        } else {
    19901990                // This term does not exist at all in the database, Create it.