[wp-trac] [WordPress Trac] #47018: No error message provided upon incomplete input in Tags Administration Screen
WordPress Trac
noreply at wordpress.org
Fri Mar 18 15:18:07 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 | javascript, administration
-------------------------------------+-------------------------------------
Changes (by afercia):
* keywords: has-screenshots input-validation => has-screenshots input-
validation has-patch
* focuses: ui, accessibility, administration => ui, accessibility,
javascript, administration
* milestone: Future Release => 6.0
Comment:
[attachment:"47018.diff"]
- Allows the add tag Ajax request to run also when the form is submitted
with the Name field left empty.
- This way, the response is now able to return error messages.
- Note that this will trigger an Ajax call every time the form is
submitted with the 'Name' field empty.
Additionally:
- Updates the CSS classes of the notices: 'error' and 'updated' are legacy
and shouldn't be used any longer.
- Adds audible messages for 3 more cases so that they're now announced by
screen readers:
- No permissions error: 'Sorry, you are not allowed to do that.'
- Broken error: 'Something went wrong.'
- When the response returns an error with a custom message.
- Updates the styling of the error red 'border', ot make it more
consistent with the 'border' used for the focus style.
- Adds `wp-a11y` as dependency for the `wp-ajax-response` script.
See attached screenshot for the error message and the new red border
style.
Moving to 6.0 consideration.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47018#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list