[wp-trac] [WordPress Trac] #17936: Prevent accidental multiple click when creating new categories

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 29 23:56:54 UTC 2011


#17936: Prevent accidental multiple click when creating new categories
----------------------------+-----------------------------
 Reporter:  mdawaffe        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.2
 Severity:  normal          |   Keywords:  has-patch
----------------------------+-----------------------------
 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).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17936>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list