mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-05 19:18:15 +02:00
cat parent not quoted in SQL.
git-svn-id: http://svn.automattic.com/wordpress/trunk@967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dda1e539d1
commit
684cb32ce0
@ -49,7 +49,7 @@ case 'addcat':
|
|||||||
$category_nicename = sanitize_title($cat_name);
|
$category_nicename = sanitize_title($cat_name);
|
||||||
$category_description = addslashes(stripslashes(stripslashes($HTTP_POST_VARS['category_description'])));
|
$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');
|
header('Location: categories.php#addcat');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user