[wp-trac] [WordPress Trac] #35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate

WordPress Trac noreply at wordpress.org
Fri Jul 14 11:49:36 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.8.1
Component:  Emoji                  |     Version:  4.2
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch fixed-major  |     Focuses:
-----------------------------------+-----------------------

Comment (by pento):

 In [changeset:"41045"]:
 {{{
 #!CommitTicketReference repository="" revision="41045"
 Emoji: Fix some failing unit tests in PHP 5.2 and 5.3.

 - Older versions of PHP don't know how to `html_entity_decode()` emoji.
 - The fall back regex was a little too broad, catching characters that
 aren't emoji.

 See #35293.
 }}}

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


More information about the wp-trac mailing list