Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#17936 closed defect (bug) (fixed)

Prevent accidental multiple click when creating new categories

Reported by: mdawaffe Owned by: westi
Priority: normal Milestone: 3.4
Component: Administration Version: 3.2
Severity: normal Keywords: has-patch commit
Cc: Focuses:

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)

17936.diff (736 bytes ) - added by mdawaffe 15 years ago.

Download all attachments as: .zip

Change History (7)

@mdawaffe
15 years ago

#1 @westi
15 years ago

  • Owner set to westi
  • Status newaccepted

#2 @ryan
15 years ago

  • Milestone Awaiting Review3.4

#3 @nacin
15 years ago

Looks good.

#4 @mp3j3rk
14 years ago

I'm new, but patch looks good to me as well.

Using WordPress 3.3.1 svn rev 20113

Last edited 14 years ago by mp3j3rk (previous) (diff)

#5 @nacin
14 years ago

  • Keywords commit added

#6 @ryan
14 years ago

  • Resolutionfixed
  • Status acceptedclosed
Note: See TracTickets for help on using tickets.