WordPress.org

Make WordPress Core

Changeset 14840


Ignore:
Timestamp:
05/24/10 15:56:50 (4 years ago)
Author:
ryan
Message:

Remove already exists check for passed in slug. fixes #12349

File:
1 edited

Legend:

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

    r14839 r14840  
    15871587    $description = stripslashes($description); 
    15881588 
    1589     $slug_from_name = sanitize_title($name); 
    1590  
    15911589    if ( empty($slug) ) 
    1592         $slug = $slug_from_name; 
    1593     elseif ( is_term($slug) && ( $slug != $slug_from_name ) ) 
    1594         return new WP_Error('term_slug_exists', __('A term with the slug provided already exists.')); 
     1590        $slug = sanitize_title($name); 
    15951591 
    15961592    $term_group = 0; 
Note: See TracChangeset for help on using the changeset viewer.