Changeset 5157

Show
Ignore:
Timestamp:
03/31/07 21:33:33 (2 years ago)
Author:
rob1n
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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}