Changeset 2947

Show
Ignore:
Timestamp:
10/13/05 18:59:10 (3 years ago)
Author:
ryan
Message:

Oops. Patch didn't apply cleanly. fixes #1750

Files:

Legend:

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

    r2946 r2947  
    108108 
    109109    if (!$update) { 
    110         $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', '$cat')")
    111111        $cat_ID = $wpdb->insert_id; 
    112112    } else { 
    113         $query = "UPDATE $wpdb->categories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = '$category_parent' WHERE cat_ID = '$cat_ID'"
     113        $wpdb->query ("UPDATE $wpdb->categories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = '$category_parent' WHERE cat_ID = '$cat_ID'")
    114114    } 
    115115     
     
    118118        $wpdb->query( "UPDATE $wpdb->categories SET category_nicename = '$category_nicename' WHERE cat_ID = '$cat_ID'" ); 
    119119    } 
    120      
    121     $result = $wpdb->query($query); 
    122120 
    123121    if ($update) {