Hook compatibility
git-svn-id: http://svn.automattic.com/wordpress/trunk@2830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e4224f411b
commit
2b1dc4616d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue