Make WordPress Core

Changeset 37296


Ignore:
Timestamp:
04/22/2016 06:28:51 AM (9 years ago)
Author:
pento
Message:

Emoji: The :roll: smiley is now an emoji.

Unicode 8 added U+1F644, "Face with Rolling Eyes", which matches our :roll: smiley. Continuing our ever present quest to rid the world of legacy smilies, we now translate that smiley into its emoji form.

Sadly, :mrgreen: remains sorely under-represented in the Unicode standard, I'm inclined to think that we should buy a voting membership of the Unicode Consortium, in order to rectify that situation. (Personally, I'm hoping for a green skin tone modifier.)

Fixes #36365.

Location:
trunk
Files:
2 edited

Legend:

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

    r37285 r37296  
    32253225           ':oops:' => "\xf0\x9f\x98\xb3",
    32263226           ':razz:' => "\xf0\x9f\x98\x9b",
    3227            ':roll:' => 'rolleyes.png',
     3227           ':roll:' => "\xf0\x9f\x99\x84",
    32283228           ':wink:' => "\xf0\x9f\x98\x89",
    32293229            ':cry:' => "\xf0\x9f\x98\xa5",
  • trunk/tests/phpunit/tests/formatting/Smilies.php

    r36337 r37296  
    189189            ),
    190190            array (
    191                 '8O :twisted: :( :? :roll:',
    192                 "\xf0\x9f\x98\xaf \xf0\x9f\x98\x88 \xf0\x9f\x99\x81 \xf0\x9f\x98\x95 <img src=\"{$includes_path}rolleyes.png\" alt=\":roll:\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" />"
     191                '8O :twisted: :( :? :roll: :mrgreen:',
     192                "\xf0\x9f\x98\xaf \xf0\x9f\x98\x88 \xf0\x9f\x99\x81 \xf0\x9f\x98\x95 \xf0\x9f\x99\x84 <img src=\"{$includes_path}mrgreen.png\" alt=\":mrgreen:\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" />"
    193193            ),
    194194        );
Note: See TracChangeset for help on using the changeset viewer.