From 74e88010c0ba1b09dc37a909f5296abd0432ea4e Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 22 Apr 2016 06:28:51 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@37296 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 +- tests/phpunit/tests/formatting/Smilies.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 1c4a445b74..a3d12221ac 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -3224,7 +3224,7 @@ function smilies_init() { ':idea:' => "\xf0\x9f\x92\xa1", ':oops:' => "\xf0\x9f\x98\xb3", ':razz:' => "\xf0\x9f\x98\x9b", - ':roll:' => 'rolleyes.png', + ':roll:' => "\xf0\x9f\x99\x84", ':wink:' => "\xf0\x9f\x98\x89", ':cry:' => "\xf0\x9f\x98\xa5", ':eek:' => "\xf0\x9f\x98\xae", diff --git a/tests/phpunit/tests/formatting/Smilies.php b/tests/phpunit/tests/formatting/Smilies.php index 5e487c2312..9cd3b06f1c 100644 --- a/tests/phpunit/tests/formatting/Smilies.php +++ b/tests/phpunit/tests/formatting/Smilies.php @@ -188,8 +188,8 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase { "\xf0\x9f\x98\x8e \xf0\x9f\x98\x88" ), array ( - '8O :twisted: :( :? :roll:', - "\xf0\x9f\x98\xaf \xf0\x9f\x98\x88 \xf0\x9f\x99\x81 \xf0\x9f\x98\x95 \":roll:\"" + '8O :twisted: :( :? :roll: :mrgreen:', + "\xf0\x9f\x98\xaf \xf0\x9f\x98\x88 \xf0\x9f\x99\x81 \xf0\x9f\x98\x95 \xf0\x9f\x99\x84 \":mrgreen:\"" ), ); }