WordPress.org

Make WordPress Core

Changeset 13405


Ignore:
Timestamp:
02/25/10 21:04:02 (5 years ago)
Author:
ryan
Message:

Pass taxonomy when looking for duplicate term slug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r13382 r13405  
    14811481    if ( empty($slug) ) 
    14821482        $slug = sanitize_title($name); 
    1483     elseif ( is_term($slug) ) // Provided slug issue. 
     1483    elseif ( is_term($slug, $taxonomy) ) // Provided slug issue. 
    14841484        return new WP_Error('term_slug_exists', __('A Term with the slug provided already exists.')); 
    14851485 
Note: See TracChangeset for help on using the changeset viewer.