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
@ -2971,10 +2971,10 @@ function smilies_init() {
|
|||||||
':eek:' => "\xf0\x9f\x98\xaf",
|
':eek:' => "\xf0\x9f\x98\xaf",
|
||||||
':lol:' => "\xf0\x9f\x98\x84",
|
':lol:' => "\xf0\x9f\x98\x84",
|
||||||
':mad:' => "\xf0\x9f\x98\xa1",
|
':mad:' => "\xf0\x9f\x98\xa1",
|
||||||
':sad:' => "\xf0\x9f\x98\xa6",
|
':sad:' => 'frownie.png',
|
||||||
'8-)' => "\xf0\x9f\x98\x8e",
|
'8-)' => "\xf0\x9f\x98\x8e",
|
||||||
'8-O' => "\xf0\x9f\x98\xaf",
|
'8-O' => "\xf0\x9f\x98\xaf",
|
||||||
':-(' => "\xf0\x9f\x98\xa6",
|
':-(' => 'frownie.png',
|
||||||
':-)' => 'simple-smile.png',
|
':-)' => 'simple-smile.png',
|
||||||
':-?' => "\xf0\x9f\x98\xaf",
|
':-?' => "\xf0\x9f\x98\xaf",
|
||||||
':-D' => "\xf0\x9f\x98\x84",
|
':-D' => "\xf0\x9f\x98\x84",
|
||||||
@ -2986,7 +2986,7 @@ function smilies_init() {
|
|||||||
// This one transformation breaks regular text with frequency.
|
// This one transformation breaks regular text with frequency.
|
||||||
// '8)' => "\xf0\x9f\x98\x8e",
|
// '8)' => "\xf0\x9f\x98\x8e",
|
||||||
'8O' => "\xf0\x9f\x98\xaf",
|
'8O' => "\xf0\x9f\x98\xaf",
|
||||||
':(' => "\xf0\x9f\x98\xa6",
|
':(' => 'frownie.png',
|
||||||
':)' => 'simple-smile.png',
|
':)' => 'simple-smile.png',
|
||||||
':?' => "\xf0\x9f\x98\xaf",
|
':?' => "\xf0\x9f\x98\xaf",
|
||||||
':D' => "\xf0\x9f\x98\x84",
|
':D' => "\xf0\x9f\x98\x84",
|
||||||
|
BIN
src/wp-includes/images/smilies/frownie.png
Executable file
After Width: | Height: | Size: 1007 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1008 B |
@ -169,7 +169,7 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase {
|
|||||||
return array (
|
return array (
|
||||||
array (
|
array (
|
||||||
'8-O :-(',
|
'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 (
|
array (
|
||||||
'8-) 8-O',
|
'8-) 8-O',
|
||||||
@ -181,7 +181,7 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase {
|
|||||||
),
|
),
|
||||||
array (
|
array (
|
||||||
'8-) :-(',
|
'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 (
|
array (
|
||||||
'8-) :twisted:',
|
'8-) :twisted:',
|
||||||
@ -189,7 +189,7 @@ class Tests_Formatting_Smilies extends WP_UnitTestCase {
|
|||||||
),
|
),
|
||||||
array (
|
array (
|
||||||
'8O :twisted: :( :? :(',
|
'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;\" />"
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|