mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 08:37:55 +02:00
Add exit hooks to wp_insert_category(). Props kevinB. fixes #4056
git-svn-id: http://svn.automattic.com/wordpress/trunk@5157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d13cd6c3ce
commit
b9ddc875bf
@ -152,6 +152,11 @@ function wp_insert_category($catarr) {
|
||||
|
||||
clean_category_cache($cat_ID);
|
||||
|
||||
if ($update)
|
||||
do_action('edited_category', $cat_ID);
|
||||
else
|
||||
do_action('created_category', $cat_ID);
|
||||
|
||||
return $cat_ID;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user