Opened 5 years ago

Closed 5 years ago

#5797 closed defect (bug) (fixed)

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

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

Description

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 5 years ago.

Download all attachments as: .zip

Change History (4)

comment:1   ryan5 years ago

Any takers?

DD325 years ago

comment:2   DD325 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)

comment:3   ryan5 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.