[wp-trac] [WordPress Trac] #56822: Use non-breaking space in required fields message

WordPress Trac noreply at wordpress.org
Fri Oct 14 00:26:32 UTC 2022


#56822: Use non-breaking space in required fields message
-------------------------+-----------------------------
 Reporter:  sabernhardt  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 @Drivingralle recommended [https://make.wordpress.org/core/2022/10/10
 /functions-and-hooks-for-required-fields-in-wordpress-6-1/#comment-43914
 changing the default space] before the visual indicator to a non-breaking
 space (so the symbol does not wrap to the next line, separated from the
 rest of the message).

 There at least two different ways to achieve that:
 1. Updating the text string to `'Required fields are marked %s'` or
 2. Creating a default filter like the "Message example" in the dev note
 (linked above)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56822>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list