Opened 3 years ago

Closed 3 years ago

#12553 closed defect (bug) (fixed)

Quick edit for link categories fails

Reported by: kpdesign Owned by: dd32
Priority: normal Milestone: 3.0
Component: Administration Version: 3.0
Severity: normal Keywords: has-patch commit
Cc: kpdesign

Description

I am logged in as an admin, and try to use Quick Edit to make a change to a link category.

I make the desired changes, then click Update Category. The update fails and I'm given a Cheatin’ uh? message (see attached screenshot).

I can edit the link categories in regular edit mode.

This happens in both single and multi-site 3.0 installs.

Attachments (2)

wp3.0-link-cat-quick-edit-fail.png (6.8 KB) - added by kpdesign 3 years ago.
12553.diff (614 bytes) - added by mdawaffe 3 years ago.

Download all attachments as: .zip

Change History (7)

  • Keywords link-category, has-patch, commit added; link-category removed

I'm not sure why Link Categories has it's own admin page instead of using edit-tags.php?taxonomy=link_category, but the attached is a quick fix for the bug.

For taxonomies that use edit-tags.php?taxonomy=blah, there is already several hidden inputs with name="taxonomy", which is what the AJAX needs in order to function.

edit-link-categories.php has no such hidden input. Attached adds one to inline_edit_term_row().

  • Keywords has-patch added; quick-edit, link-category, has-patch, removed
  • Owner set to dd32
  • Status changed from new to assigned

comment:3   dd323 years ago

I'm not sure why Link Categories has it's own admin page instead of using edit-tags.php?taxonomy=link_category, but the attached is a quick fix for the bug.

Thats probably due to the poor handling of the Posts(Links) column, At present, the title of the column (and the link) are limited to Posts & edit.php.

Throwing the quickfix in first, should extend the table to handle the different column types & lables.

comment:4   dd323 years ago

(In [13624]) Fix inline taxonomy Quick Edit. Props mdawaffe. See #12553

comment:5   dd323 years ago

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

See #12285 for remaining issues

Note: See TracTickets for help on using tickets.