Opened 14 years ago
Closed 13 years ago
#17936 closed defect (bug) (fixed)
Prevent accidental multiple click when creating new categories
Reported by: | mdawaffe | Owned by: | westi |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | 3.2 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
It is possible to click the "Add New Category" button multiple times when creating a new category from the new post screen.
In certain cases, the extra clicks can cause (mostly harmless) fatal errors because of a race condition in _wp_ajax_add_hierarchical_term()
.
Attached disables the button via JS after the first click and re-enables it after the AJAX request completes (successfully or not).
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Looks good.