[wp-trac] [WordPress Trac] #38424: Custom form taxonomy field doesn't clear after added...

WordPress Trac noreply at wordpress.org
Sun Jul 9 13:43:05 UTC 2017


#38424: Custom form taxonomy field doesn't clear after added...
--------------------------+-----------------------------
 Reporter:  SGr33n        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Taxonomy      |     Version:  2.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by afercia):

 * keywords:  has-patch 2nd-opinion => has-patch
 * version:  4.7 => 2.9


Comment:

 Not sure why the current code checks also for `:visible`; what about just
 resetting the form? E.g.:
 `form[0].reset()`
 - any field within the form would be reset, even the custom ones added via
 filters
 - this would also preserve radio buttons and checkboxes that may set their
 own default values

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38424#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list