Don't allow blank cats. Props donncha. fixes #2960

git-svn-id: https://develop.svn.wordpress.org/trunk@4022 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-07-20 01:30:37 +00:00
parent 47f127394b
commit e06934b624
2 changed files with 9 additions and 3 deletions

View File

@@ -84,6 +84,9 @@ function wp_insert_category($catarr) {
extract($catarr);
if( trim( $cat_name ) == '' )
return 0;
$cat_ID = (int) $cat_ID;
// Are we updating or creating?