From 684cb32ce02d8a69af6f65f00c0b148c085388f7 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Wed, 10 Mar 2004 15:40:55 +0000 Subject: [PATCH] cat parent not quoted in SQL. git-svn-id: http://svn.automattic.com/wordpress/trunk@967 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 151b7ce050..68857cf888 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -49,7 +49,7 @@ case 'addcat': $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, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', $cat)"); + $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$cat')"); header('Location: categories.php#addcat');