[wp-trac] [WordPress Trac] #54394: Add functions for required fields indicator and message
WordPress Trac
noreply at wordpress.org
Thu Jan 13 21:35:35 UTC 2022
#54394: Add functions for required fields indicator and message
---------------------------------------+----------------------------
Reporter: sabernhardt | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: 6.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch required-fields | Focuses: accessibility
---------------------------------------+----------------------------
Old description:
> Required fields should include a visual indicator, plus a legend when
> using a star or similar character for multiple fields.
>
> Having a set of return and echo functions to create strings for both the
> indicator and a default explanation could help in some
> [https://core.trac.wordpress.org/query?status=!closed&keywords=~required-
> fields core implementations], as well as with plugins and themes ''(if
> their minimum WordPress version includes these functions)''.
New description:
Required fields should include a visual indicator, plus a legend when
using a star or similar character for multiple fields.
Having a set of return and echo functions to create strings for both the
indicator and a default explanation could help in some
[https://core.trac.wordpress.org/query?status=!closed&keywords=~required-
fields core implementations] such as #34860, as well as with plugins and
themes ''(if their minimum WordPress version includes these functions)''.
--
Comment (by sabernhardt):
If editing the Comments form template is appropriate, some of these other
existing cases might be good to update as well:
- [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/network
/site-new.php?rev=51500#L196 New Site form]
- [https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/media.php?rev=52332#L1711 get_media_item]
- [https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/media.php?rev=52332#L2942 wp_media_insert_url_form]
- [https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/media.php?rev=52332#L1873 get_compat_media_markup]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54394#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list