diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 31e8a1f9d..d488d1aae 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -47,8 +47,9 @@ case 'addcat': $cat_name= addslashes(stripslashes(stripslashes($HTTP_POST_VARS['cat_name']))); $category_nicename = sanitize_title($cat_name); + $category_description = addslashes(stripslashes(stripslashes($HTTP_POST_VARS['category_description']))); - $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename) VALUES ('0', '$cat_name', '$category_nicename')"); + $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description) VALUES ('0', '$cat_name', '$category_nicename', '$category_description')"); header('Location: categories.php'); @@ -161,7 +162,7 @@ default: echo "$category->cat_name $category->category_description $count - Editcat_name\' and all its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop.')\" class='delete'>Delete + Editcat_name) ."\' and all its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop.')\" class='delete'>Delete "; } ?>