[wp-trac] [WordPress Trac] #54394: Add functions for required fields indicator and message

WordPress Trac noreply at wordpress.org
Mon Nov 8 06:37:14 UTC 2021


#54394: Add functions for required fields indicator and message
-----------------------------+------------------------------
 Reporter:  sabernhardt      |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  accessibility
-----------------------------+------------------------------

Comment (by sabernhardt):

 The names of the functions could change; these are what I have for now:
 {{{
 get_required_field_indicator
 the_required_field_indicator

 get_required_field_message
 the_required_field_message
 }}}

 Each of these functions has a `$space_before` argument to define whether
 the tag should have a space before it and which kind of space (someone may
 want non-breaking or similar).

 I may have overused the escape functions, but the first patch is mainly
 for the concept.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54394#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list