[wp-trac] [WordPress Trac] #54394: Add functions for required fields indicator and message
WordPress Trac
noreply at wordpress.org
Mon Sep 12 22:29:17 UTC 2022
#54394: Add functions for required fields indicator and message
--------------------------------------+----------------------------
Reporter: sabernhardt | Owner: audrasjb
Type: feature request | Status: closed
Priority: normal | Milestone: 6.1
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-dev-note | Focuses: accessibility
--------------------------------------+----------------------------
Comment (by audrasjb):
In [changeset:"54137" 54137]:
{{{
#!CommitTicketReference repository="" revision="54137"
Comments: Make `wp_required_field_indicator()` and
`wp_required_field_message()` output filterable.
This changeset introduces two new hooks:
- `wp_required_field_indicator` allows developers to filter the HTML
output of the `wp_required_field_indicator()` function.
- `wp_required_field_message` does the same for the
`wp_required_field_message()` function.
The changeset also adds new phpunit tests for these filters.
Follow-up to [53888], [54136].
Props kebbet, audrasjb, sabernhardt, costdev, mukesh27.
Fixes #56389.
See #54394.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54394#comment:64>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list