[wp-trac] [WordPress Trac] #56389: Make wp_required_field_indicator and wp_required_field_message filterable

WordPress Trac noreply at wordpress.org
Mon Sep 12 22:29:17 UTC 2022


#56389: Make wp_required_field_indicator and wp_required_field_message filterable
-------------------------------------------------+-------------------------
 Reporter:  kebbet                               |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  General                              |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note has-unit-   |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 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/56389#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list