Category Ajax improvements from mdawaffe. fixes #2803

git-svn-id: https://develop.svn.wordpress.org/trunk@4041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-07-25 06:36:10 +00:00
parent 0e64623351
commit d44fdf7d33
4 changed files with 52 additions and 42 deletions
+1 -1
View File
@@ -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))
if ( empty($category_parent) || !get_category( $category_parent ) )
$category_parent = 0;
if ( isset($posts_private) )