WordPress.org

Make WordPress Core

Changeset 5658


Ignore:
Timestamp:
06/06/2007 04:10:52 PM (11 years ago)
Author:
ryan
Message:

Fix category renaming. fixes #4415 see #4189

File:
1 edited

Legend:

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

    r5652 r5658  
    217217    extract($args);
    218218
    219     $parent = (int) $parent;
    220 
    221219    if ( empty($slug) )
    222220        $slug = sanitize_title($name);
     
    239237
    240238    if ( empty($slug) ) {
    241         $slug = sanitize_title($slug, $term_id);
     239        $slug = sanitize_title($name, $term_id);
    242240        $wpdb->query("UPDATE $wpdb->terms SET slug = '$slug' WHERE term_id = '$term_id'");
    243241    }
Note: See TracChangeset for help on using the changeset viewer.