Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#5797 closed defect (bug) (fixed)

Add New Category box on Write->Link page is broken

Reported by: ryan Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.5
Component: General Keywords: ajax js category has-patch
Focuses: Cc:


The AJAX category add box in edit-link-form.php needs to be updated. It's a cut-and-paste from the post form and needs to use link categories instead of post categories and lose all of the category hierarchy support since link categories are flat. See wp-admin/edit-link-form.php, wp-admin/js/link.js, and wp-admin/admin-ajax.php.

Attachments (1)

5797.diff (352 bytes) - added by DD32 14 years ago.

Download all attachments as: .zip

Change History (4)

#1 @ryan
14 years ago

Any takers?

14 years ago

#2 @DD32
14 years ago

  • Keywords has-patch added

Turns out when it was submitting the ajax request, it was still carrying the 'add-category' action.

The correct action for link categorys to be added is 'add-link-category' (And add- seems to be prefixed automatically by the WpList code)

#3 @ryan
14 years ago

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

(In [6774]) Fix add new category box for links. Props DD32. fixes #5797

Note: See TracTickets for help on using tickets.