[wp-trac] [WordPress Trac] #31328: Emoji in a slug fails to display
WordPress Trac
noreply at wordpress.org
Sat Feb 14 05:57:13 UTC 2015
#31328: Emoji in a slug fails to display
----------------------------------------+-----------------------------
Reporter: kraftbj | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Formatting | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: administration
----------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch => has-patch needs-unit-tests
* component: Posts, Post Types => Formatting
Comment:
[attachment:31328.patch] fixes `utf8_uri_encode()` to support 4-byte
sequences.
This resolves the issue on display, but still breaks on editing, see
[attachment:31328.edit-slug.png].
[attachment:31328.2.patch] (based on a
[http://stackoverflow.com/questions/12807176/php-writing-a-simple-
removeemoji-function Stack Overflow thread]) also strips Emoji in
`sanitize_title_with_dashes()`, similarly to [18705] and [20686].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31328#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list