Changeset 4638

Show
Ignore:
Timestamp:
12/10/06 20:27:20 (2 years ago)
Author:
markjaquith
Message:

cat_id_filter from Donncha. fixes #3458

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin-db.php

    r4631 r4638  
    133133        $wpdb->query( "UPDATE $wpdb->categories SET category_nicename = '$category_nicename' WHERE cat_ID = '$cat_ID'" ); 
    134134    } 
     135 
     136    // Keep in mind when using this filter and altering the cat_ID that the two queries above 
     137    // have already taken place with the OLD cat_ID 
     138    // Also note that you may have post2cat entries with the old cat_ID if this is an update 
     139    $cat_ID = apply_filters('cat_id_filter', $cat_ID, $update); 
    135140 
    136141    clean_category_cache($cat_ID);