Make WordPress Core


Ignore:
Timestamp:
04/09/2015 04:36:57 AM (10 years ago)
Author:
pento
Message:

Emoji: Tidy up the wp_encode_emoji() regex, and clarify the function comment on Unicode 8 support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r32039 r32096  
    41794179 * Convert any 4 byte emoji in a string to their equivalent HTML entity.
    41804180 *
    4181  * Currently, only Unicode 7 emoji are supported. Unicode 8 emoji will be added
    4182  * when the spec in finalised, along with the new skin-tone modifiers.
     4181 * Currently, only Unicode 7 emoji are supported. Skin tone modifiers are allowed,
     4182 * all other Unicode 8 emoji will be added when the spec is finalised.
    41834183 *
    41844184 * This allows us to store emoji in a DB using the utf8 character set.
     
    41994199           | \xF0\x9F\x99[\x80-\x8F]
    42004200           | \xF0\x9F\x9A[\x80-\xBF]        # Transport and map symbols
    4201            | \xF0\x9F\x99[\x80-\x85]
    42024201        )/x';
    42034202
Note: See TracChangeset for help on using the changeset viewer.