[wp-trac] [WordPress Trac] #56677: Allow hyphens in post tags
WordPress Trac
noreply at wordpress.org
Sun Oct 2 18:53:04 UTC 2022
#56677: Allow hyphens in post tags
--------------------------------+------------------------------
Reporter: cewebdesignmunchen | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution: invalid
Keywords: close | Focuses:
--------------------------------+------------------------------
Changes (by sajjad67):
* keywords: => close
* status: new => closed
* resolution: => invalid
Comment:
The purpose of soft hyphen (SHY) is understood, but the name of a tag, how
could it be break at? like what is the expected thing you are looking for?
You want to go the `keywoooooooooord` at new line? It is not preserve /
filtered cause SHY is an HTML! If you look at `wp_insert_term()` function
which calls `sanitize_term()` and eventually lands on
`sanitize_term_field()`, it needs to be escaped! A Term name should not be
formatted!! It has to be only valid names... a soft hyphen doesn't seem to
be a valid name for a Term!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56677#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list