Make WordPress Core


Ignore:
Timestamp:
10/20/2005 08:50:31 PM (19 years ago)
Author:
ryan
Message:

Category parent fix from donncha. fixes #1775

File:
1 edited

Legend:

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

    r2947 r2959  
    108108
    109109    if (!$update) {
    110         $wpdb->query("INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$cat')");
     110        $wpdb->query("INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$category_parent')");
    111111        $cat_ID = $wpdb->insert_id;
    112112    } else {
Note: See TracChangeset for help on using the changeset viewer.