Make WordPress Core

Changeset 5157


Ignore:
Timestamp:
03/31/2007 09:33:33 PM (16 years ago)
Author:
rob1n
Message:

Add exit hooks to wp_insert_category(). Props kevinB. fixes #4056

File:
1 edited

Legend:

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

    r5148 r5157  
    153153    clean_category_cache($cat_ID);
    154154
     155    if ($update)
     156        do_action('edited_category', $cat_ID);
     157    else
     158        do_action('created_category', $cat_ID);
     159   
    155160    return $cat_ID;
    156161}
Note: See TracChangeset for help on using the changeset viewer.