Changeset 2959

Show
Ignore:
Timestamp:
10/20/05 20:50:31 (3 years ago)
Author:
ryan
Message:

Category parent fix from donncha. fixes #1775

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 {