cat parent not quoted in SQL.
git-svn-id: https://develop.svn.wordpress.org/trunk@967 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
484d60853a
commit
d461610486
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user