[wp-trac] [WordPress Trac] #47018: No error message provided upon incomplete input in Tags Administration Screen
WordPress Trac
noreply at wordpress.org
Tue Apr 5 15:01:37 UTC 2022
#47018: No error message provided upon incomplete input in Tags Administration
Screen
-------------------------------------+-------------------------------------
Reporter: conner_bw | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.0
Component: Taxonomy | Version: 5.1.1
Severity: normal | Resolution:
Keywords: has-screenshots input- | Focuses: ui, accessibility,
validation has-patch needs- | javascript, administration
testing |
-------------------------------------+-------------------------------------
Changes (by afercia):
* keywords: has-screenshots input-validation has-patch needs-refresh =>
has-screenshots input-validation has-patch needs-testing
Comment:
[attachment:"47018.2.diff"] builds on the previous patch and:
- Adds specific error code (when available) to the `add-tag` ajax action .
- Checks for that error code to add the red border to the input field.
- Calls `validateForm()` when the response error is returned, so that
there's no delay between the field getting a red border and the error
message displaying.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47018#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list