[wp-trac] [WordPress Trac] #48030: HTML5 input types are not being reset when submitting the addtag form
WordPress Trac
noreply at wordpress.org
Fri Mar 18 20:10:58 UTC 2022
#48030: HTML5 input types are not being reset when submitting the addtag form
-----------------------------+---------------------------------------------
Reporter: stevegrunwell | Owner: davidbaumwald
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Taxonomy | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses: ui, javascript, administration
needs-testing |
-----------------------------+---------------------------------------------
Changes (by davidbaumwald):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"52953" 52953]:
{{{
#!CommitTicketReference repository="" revision="52953"
Taxonomy: Consider HTML5 input types when resetting form values after
adding a new tag.
When adding a new tag, the form is reset by clearing values for
`input[type=text]` and `textarea`s. However, the reset doesn't account
for any HTML5 input types, like `number` or `url`, that may be added by
plugins or themes.
This change updates the form resetting jQuery to clear any values from
`input` types that are not hidden and neither a `checkbox` nor `radio`
type.
Props stevegrunwell.
Fixes #48030.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48030#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list