Make WordPress Core


Ignore:
Timestamp:
10/13/2005 06:59:10 PM (21 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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) {
Note: See TracChangeset for help on using the changeset viewer.