Make WordPress Core

Changeset 967


Ignore:
Timestamp:
03/10/2004 03:40:55 PM (21 years ago)
Author:
saxmatt
Message:

cat parent not quoted in SQL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.php

    r957 r967  
    5050    $category_description = addslashes(stripslashes(stripslashes($HTTP_POST_VARS['category_description'])));
    5151   
    52     $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', $cat)");
     52    $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$cat')");
    5353   
    5454    header('Location: categories.php#addcat');
Note: See TracChangeset for help on using the changeset viewer.