[wp-trac] [WordPress Trac] #56677: Allow hyphens in post tags

WordPress Trac noreply at wordpress.org
Thu Jan 5 19:17:10 UTC 2023


#56677: Allow hyphens in post tags
--------------------------------+----------------------
 Reporter:  cewebdesignmunchen  |       Owner:  (none)
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Posts, Post Types   |     Version:
 Severity:  normal              |  Resolution:  invalid
 Keywords:                      |     Focuses:
--------------------------------+----------------------
Changes (by desrosj):

 * keywords:  close =>
 * milestone:  Awaiting Review =>


Comment:

 I agree that this should be closed as a `wontfix`. Instead of hard coding
 a hyphen character into the tag/term name, this should be managed using
 CSS and the `hyphens` property ([https://developer.mozilla.org/en-
 US/docs/Web/CSS/hyphens#values documentation]).

 Depending on the context where a term is being displayed (within a narrow
 sidebar, below a post title in a full-width layout, etc.) combined with
 other design related factors (font size, weight, face, etc.), where a word
 should be hyphenated will vary greatly. Using `hyphen: auto` will allow
 the browser to make it's own dynamic determinations as to where a word
 should be fhyphenated.

 `hyphen: auto` will also use factors relevant to the locale specified in
 the `lang` HTML attribute to determine the best places for words to be
 hyphenated, which makes it a better approach for non-English websites.

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


More information about the wp-trac mailing list