mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user