Fix typo. fixes #3387
git-svn-id: https://develop.svn.wordpress.org/trunk@4534 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5a2e0d5e60
commit
cce9bce2cb
@ -108,7 +108,7 @@ function wp_insert_category($catarr) {
|
||||
$category_description = apply_filters('pre_category_description', $category_description);
|
||||
|
||||
$category_parent = (int) $category_parent;
|
||||
if ( empty($category_parent) || !get_category( $category_parent ) || ($cat_ID && _cat_is_ancestor_of($cat_ID, $category_parent) ) )
|
||||
if ( empty($category_parent) || !get_category( $category_parent ) || ($cat_ID && cat_is_ancestor_of($cat_ID, $category_parent) ) )
|
||||
$category_parent = 0;
|
||||
|
||||
if ( isset($posts_private) )
|
||||
|
Loading…
Reference in New Issue
Block a user