[wp-trac] [WordPress Trac] #35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate
WordPress Trac
noreply at wordpress.org
Mon Sep 25 02:07:34 UTC 2017
#35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate
-------------------------------------+--------------------------
Reporter: pento | Owner: pento
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.9
Component: Emoji | Version: 4.2
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: performance
-------------------------------------+--------------------------
Comment (by peterwilsoncc):
When testing for 4.8.1, @westonruter discovered a bug, from
[https://wordpress.slack.com/archives/C02RQBWTW/p1505851675000210 #core]
> I create a post with:
> This is an emoji: 🤗✨🤷♂️❤️✅
> But then when the post refreshes after saving it comes back with:
> This is an emoji: ✨♂️❤️✅
I was able to recreate the above forcing `wpdb:has_cap( 'utf8mb' )` to
return `false`, ie forcing the database to use utf8.
After applying this patch, the returned value was as in the screen shot in
[attachment:35293.png].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35293#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list