Hook compatibility

git-svn-id: http://svn.automattic.com/wordpress/trunk@2830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-08-30 23:24:12 +00:00
parent e4224f411b
commit 2b1dc4616d
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ function wp_insert_category($catarr) {
do_action('edit_category', $cat_ID);
} else {
$rval = $wpdb->insert_id;
do_action('create_category', $cat_ID);
do_action('create_category', $rval);
do_action('add_category', $rval);
}
return $rval;