WordPress.org

Make WordPress Core

Changeset 32105


Ignore:
Timestamp:
04/10/2015 06:29:49 AM (4 years ago)
Author:
pento
Message:

Smilies: Tweak which smiley matches which emoji.

Props iseulde.

See #31709.

Location:
trunk
Files:
2 edited

Legend:

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

    r32104 r32105  
    29592959          ':shock:' => "\xf0\x9f\x98\xaf",
    29602960          ':smile:' => 'simple-smile.png',
    2961             ':???:' => "\xf0\x9f\x98\xaf",
     2961            ':???:' => "\xf0\x9f\x98\x95",
    29622962           ':cool:' => "\xf0\x9f\x98\x8e",
    29632963           ':evil:' => "\xf0\x9f\x91\xbf",
    2964            ':grin:' => "\xf0\x9f\x98\x84",
     2964           ':grin:' => "\xf0\x9f\x98\x80",
    29652965           ':idea:' => "\xf0\x9f\x92\xa1",
    29662966           ':oops:' => "\xf0\x9f\x98\xb3",
     
    29692969           ':wink:' => "\xf0\x9f\x98\x89",
    29702970            ':cry:' => "\xf0\x9f\x98\xa5",
    2971             ':eek:' => "\xf0\x9f\x98\xaf",
    2972             ':lol:' => "\xf0\x9f\x98\x84",
     2971            ':eek:' => "\xf0\x9f\x98\xae",
     2972            ':lol:' => "\xf0\x9f\x98\x86",
    29732973            ':mad:' => "\xf0\x9f\x98\xa1",
    29742974            ':sad:' => 'frownie.png',
     
    29772977              ':-(' => 'frownie.png',
    29782978              ':-)' => 'simple-smile.png',
    2979               ':-?' => "\xf0\x9f\x98\xaf",
    2980               ':-D' => "\xf0\x9f\x98\x84",
     2979              ':-?' => "\xf0\x9f\x98\x95",
     2980              ':-D' => "\xf0\x9f\x98\x80",
    29812981              ':-P' => "\xf0\x9f\x98\x9b",
    2982               ':-o' => "\xf0\x9f\x98\xaf",
     2982              ':-o' => "\xf0\x9f\x98\xae",
    29832983              ':-x' => "\xf0\x9f\x98\xa1",
    29842984              ':-|' => "\xf0\x9f\x98\x90",
     
    29892989               ':(' => 'frownie.png',
    29902990               ':)' => 'simple-smile.png',
    2991                ':?' => "\xf0\x9f\x98\xaf",
    2992                ':D' => "\xf0\x9f\x98\x84",
     2991               ':?' => "\xf0\x9f\x98\x95",
     2992               ':D' => "\xf0\x9f\x98\x80",
    29932993               ':P' => "\xf0\x9f\x98\x9b",
    29942994               ':o' => "\xf0\x9f\x98\xaf",
  • trunk/tests/phpunit/tests/formatting/Smilies.php

    r32104 r32105  
    1717            array (
    1818                'Lorem ipsum dolor sit amet mauris ;-) Praesent gravida sodales. :lol: Vivamus nec diam in faucibus eu, bibendum varius nec, imperdiet purus est, at augue at lacus malesuada elit dapibus a, :eek: mauris. Cras mauris viverra elit. Nam laoreet viverra. Pellentesque tortor. Nam libero ante, porta urna ut turpis. Nullam wisi magna, :mrgreen: tincidunt nec, sagittis non, fringilla enim. Nam consectetuer nec, ullamcorper pede eu dui odio consequat vel, vehicula tortor quis pede turpis cursus quis, egestas ipsum ultricies ut, eleifend velit. Mauris vestibulum iaculis. Sed in nunc. Vivamus elit porttitor egestas. Mauris purus :?:',
    19                 "Lorem ipsum dolor sit amet mauris \xf0\x9f\x98\x89 Praesent gravida sodales. \xf0\x9f\x98\x84 Vivamus nec diam in faucibus eu, bibendum varius nec, imperdiet purus est, at augue at lacus malesuada elit dapibus a, \xf0\x9f\x98\xaf mauris. Cras mauris viverra elit. Nam laoreet viverra. Pellentesque tortor. Nam libero ante, porta urna ut turpis. Nullam wisi magna, <img src=\"${includes_path}mrgreen.png\" alt=\":mrgreen:\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" /> tincidunt nec, sagittis non, fringilla enim. Nam consectetuer nec, ullamcorper pede eu dui odio consequat vel, vehicula tortor quis pede turpis cursus quis, egestas ipsum ultricies ut, eleifend velit. Mauris vestibulum iaculis. Sed in nunc. Vivamus elit porttitor egestas. Mauris purus \xe2\x9d\x93"
     19                "Lorem ipsum dolor sit amet mauris \xf0\x9f\x98\x89 Praesent gravida sodales. \xf0\x9f\x98\x86 Vivamus nec diam in faucibus eu, bibendum varius nec, imperdiet purus est, at augue at lacus malesuada elit dapibus a, \xf0\x9f\x98\xae mauris. Cras mauris viverra elit. Nam laoreet viverra. Pellentesque tortor. Nam libero ante, porta urna ut turpis. Nullam wisi magna, <img src=\"${includes_path}mrgreen.png\" alt=\":mrgreen:\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" /> tincidunt nec, sagittis non, fringilla enim. Nam consectetuer nec, ullamcorper pede eu dui odio consequat vel, vehicula tortor quis pede turpis cursus quis, egestas ipsum ultricies ut, eleifend velit. Mauris vestibulum iaculis. Sed in nunc. Vivamus elit porttitor egestas. Mauris purus \xe2\x9d\x93"
    2020            ),
    2121            array (
     
    2525            array (
    2626                "<strong;)>a little bit of this\na little bit:other: of that :D\n:D a little bit of good\nyeah with a little bit of bad8O",
    27                 "<strong;)>a little bit of this\na little bit:other: of that \xf0\x9f\x98\x84\n\xf0\x9f\x98\x84 a little bit of good\nyeah with a little bit of bad8O"
     27                "<strong;)>a little bit of this\na little bit:other: of that \xf0\x9f\x98\x80\n\xf0\x9f\x98\x80 a little bit of good\nyeah with a little bit of bad8O"
    2828            ),
    2929            array (
     
    190190            array (
    191191                '8O :twisted: :( :? :(',
    192                 "\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;\" />"
     192                "\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\x95 <img src=\"http://example.org/wp-includes/images/smilies/frownie.png\" alt=\":(\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" />"
    193193            ),
    194194        );
Note: See TracChangeset for help on using the changeset viewer.