Make WordPress Core


Ignore:
Timestamp:
03/10/2004 07:46:48 PM (22 years ago)
Author:
emc3
Message:

Need to explicitly set the $cat var, in case globals are turned off.

File:
1 edited

Legend:

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

    r967 r968  
    4949    $category_nicename = sanitize_title($cat_name);
    5050    $category_description = addslashes(stripslashes(stripslashes($HTTP_POST_VARS['category_description'])));
    51    
     51    $cat = intval($HTTP_POST_VARS['cat']);
     52
    5253    $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$cat')");
    5354   
Note: See TracChangeset for help on using the changeset viewer.