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

WordPress Trac noreply at wordpress.org
Fri Jul 14 12:24:42 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):

 Replying to [comment:16 ocean90]:
 > Micro-optimization: `_wp_staticize_emoji()` now calls the two filters
 for each emoji, previously it was just once for the whole `$text`. Should
 it be cached in a static variable?

 People who use lots of emoji deserve the fastest possible experience. No
 optimisation is too micro for them.

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


More information about the wp-trac mailing list