Ticket #12242 (closed defect (bug): duplicate)

Opened 2 years ago

Last modified 21 months ago

Category Checkboxes sync to any checkbox array on the edit form

Reported by: kevinB Owned by: azaozz
Priority: normal Milestone:
Component: JavaScript Version: 2.9.2
Severity: normal Keywords:
Cc:

Description

The javascript which syncs "All" and "Most Used" category checkboxes was rewritten for WP 2.9. The new JQuery code binds to the click event of every checkbox on the form, and synchronizes the category checkboxes with matching value attribute.

In the default configuration it works fine. But if a plugin adds another checkbox array to the form, these checkboxes also become a sync source for the category checkboxes. Category checkboxes are (un)checked when the plugin checkbox is clicked.

This occurs only with plugin-defined checkbox arrays, and only for checkboxes whose values attribute matches a category ID. So there is a limited incidence, but potentially significant severity. The error would presumably also occur with custom taxonomy checkboxes.

To reproduce:

  • Edit or Add New Post
  • In the Readers metabox, toggle the checkbox of a Group or User whose ID value matches any Category ID (Firebug is helpful here).

Attachments

sync-popular-cat-jquery_2.9.patch Download (627 bytes) - added by kevinB 2 years ago.
JQuery to sync "All" categories and "Most Used" categories checkboxes

Change History

kevinB2 years ago

JQuery to sync "All" categories and "Most Used" categories checkboxes

see #12244 for corresponding WP 3.0 patch

comment:2 follow-up: ↓ 3   nacin23 months ago

  • Keywords close added; taxonomy, category, post removed

Was this handled in #12244 then?

comment:3 in reply to: ↑ 2   johnbillion21 months ago

  • Keywords close removed
  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Unassigned to 3.0

Replying to nacin:

Was this handled in #12244 then?

Yes. Closing this as fixed as this won't be something to go into 2.9 branch.

  • Status changed from closed to reopened
  • Resolution fixed deleted
  • Status changed from reopened to closed
  • Resolution set to duplicate
  • Milestone 3.0 deleted
Note: See TracTickets for help on using tickets.