Opened 21 years ago
Closed 21 years ago
#1775 closed defect (bug) (fixed)
Add category parent patch
| Reported by: | donncha | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 1.6 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [2959]) Category parent fix from donncha. fixes #1775