Make WordPress Core

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.

Change History (1)

#1 @ryan
21 years ago

  • Resolution → fixed
  • Status new → closed

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

Note: See TracTickets for help on using tickets.