Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1775 closed defect (bug) (fixed)

Add category parent patch

Reported by: donncha's profile donncha Owned by: ryan's profile ryan
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.

Change History (1)

#1 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2959]) Category parent fix from donncha. fixes #1775

Note: See TracTickets for help on using tickets.