Make WordPress Core

Changeset 4638


Ignore:
Timestamp:
12/10/2006 08:27:20 PM (19 years ago)
Author:
markjaquith
Message:

cat_id_filter from Donncha. fixes #3458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.