Smilies: Update our few remaining smilies to better align with Twemoji, and add frownie.png until Twemoji provide a build containing it.

Props joen.

See #31709.



git-svn-id: https://develop.svn.wordpress.org/trunk@32104 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2015-04-10 06:19:39 +00:00
parent 3019ddf457
commit 3bd66eff61
6 changed files with 6 additions and 6 deletions

View File

@ -2971,10 +2971,10 @@ function smilies_init() {
':eek:' => "\xf0\x9f\x98\xaf",
':lol:' => "\xf0\x9f\x98\x84",
':mad:' => "\xf0\x9f\x98\xa1",
':sad:' => "\xf0\x9f\x98\xa6",
':sad:' => 'frownie.png',
'8-)' => "\xf0\x9f\x98\x8e",
'8-O' => "\xf0\x9f\x98\xaf",
':-(' => "\xf0\x9f\x98\xa6",
':-(' => 'frownie.png',
':-)' => 'simple-smile.png',
':-?' => "\xf0\x9f\x98\xaf",
':-D' => "\xf0\x9f\x98\x84",
@ -2986,7 +2986,7 @@ function smilies_init() {
// This one transformation breaks regular text with frequency.
// '8)' => "\xf0\x9f\x98\x8e",
'8O' => "\xf0\x9f\x98\xaf",
':(' => "\xf0\x9f\x98\xa6",
':(' => 'frownie.png',
':)' => 'simple-smile.png',
':?' => "\xf0\x9f\x98\xaf",
':D' => "\xf0\x9f\x98\x84",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1007 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1008 B

View File

@ -169,7 +169,7 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase {
return array (
array (
'8-O :-(',
"\xf0\x9f\x98\xaf \xf0\x9f\x98\xa6"
"\xf0\x9f\x98\xaf <img src=\"http://example.org/wp-includes/images/smilies/frownie.png\" alt=\":-(\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" />"
),
array (
'8-) 8-O',
@ -181,7 +181,7 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase {
),
array (
'8-) :-(',
"\xf0\x9f\x98\x8e \xf0\x9f\x98\xa6"
"\xf0\x9f\x98\x8e <img src=\"http://example.org/wp-includes/images/smilies/frownie.png\" alt=\":-(\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" />"
),
array (
'8-) :twisted:',
@ -189,7 +189,7 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase {
),
array (
'8O :twisted: :( :? :(',
"\xf0\x9f\x98\xaf \xf0\x9f\x98\x88 \xf0\x9f\x98\xa6 \xf0\x9f\x98\xaf \xf0\x9f\x98\xa6"
"\xf0\x9f\x98\xaf \xf0\x9f\x98\x88 <img src=\"http://example.org/wp-includes/images/smilies/frownie.png\" alt=\":(\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" /> \xf0\x9f\x98\xaf <img src=\"http://example.org/wp-includes/images/smilies/frownie.png\" alt=\":(\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" />"
),
);
}