Opened 20 years ago
Closed 20 years ago
#1775 closed defect (bug) (fixed)
Add category parent patch
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 1.6 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
This patch will fix the problem when adding categories with a parent category. The parent is lost in the SQL.
Replace line 110 of wp-admin/admin-db.php:
$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')");
$cat at the end of the line becomes $category_parent.
Note: See
TracTickets for help on using
tickets.
(In [2959]) Category parent fix from donncha. fixes #1775