Make WordPress Core

Ticket #44339: 44339.2.diff

File 44339.2.diff, 4.4 KB (added by kraftbj, 5 years ago)

Add test for superhero+ZWJ+female

  • package-lock.json

     
    35033503                "fsevents": {
    35043504                        "version": "1.1.3",
    35053505                        "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz",
    3506                         "integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==",
     3506                        "integrity": "sha1-EfgjGPX+e7LNIpZaEI6TBiCCFtg=",
    35073507                        "dev": true,
    35083508                        "optional": true,
    35093509                        "requires": {
     
    1069610696                        "optional": true
    1069710697                },
    1069810698                "twemoji": {
    10699                         "version": "2.5.1",
    10700                         "resolved": "https://registry.npmjs.org/twemoji/-/twemoji-2.5.1.tgz",
    10701                         "integrity": "sha1-KWZHxhY8fwR0WIccKuviXqj/6DQ="
     10699                        "version": "11.0.0",
     10700                        "resolved": "https://registry.npmjs.org/twemoji/-/twemoji-11.0.0.tgz",
     10701                        "integrity": "sha1-fuxX0Sv9H//o1efwXaC2QipgeQ8="
    1070210702                },
    1070310703                "type-is": {
    1070410704                        "version": "1.6.16",
  • package.json

     
    5353                "jquery-hoverintent": "1.8.3",
    5454                "jquery-ui": "github:jquery/jquery-ui#1.11.4",
    5555                "masonry-layout": "3.3.2",
    56                 "twemoji": "2.5.1",
     56                "twemoji": "11.0.0",
    5757                "underscore": "1.8.3"
    5858        }
    5959}
  • src/js/_enqueues/lib/emoji-loader.js

     
    9595                                return ! isIdentical;
    9696                        case 'emoji':
    9797                                /*
    98                                  * Emoji allows people of all gender levitate and so does WordPress.
     98                                 * She's the hero Emoji deserves, but not the one it needs right now.
    9999                                 *
    100                                  * To test for support, try to render a new emoji (woman in business suit levitating),
     100                                 * To test for support, try to render a new emoji (female superhero),
    101101                                 * then compare it to how it would look if the browser doesn't render it correctly
    102                                  * (person in business suit levitating + female sign).
     102                                 * (superhero + female sign) .
    103103                                 */
    104104                                isIdentical = emojiSetsRenderIdentically(
    105                                         [55357, 56692, 8205, 9792, 65039],
    106                                         [55357, 56692, 8203, 9792, 65039]
     105                                        [55358, 56760, 8205, 9792, 65039],
     106                                        [55358, 56760, 8203, 9792, 65039]
    107107                                );
     108
    108109                                return ! isIdentical;
    109110                }
    110111
  • src/wp-includes/formatting.php

     
    53885388                 *
    53895389                 * @param string The emoji base URL for png images.
    53905390                 */
    5391                 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.4/72x72/' ),
     5391                'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/11/72x72/' ),
    53925392
    53935393                /**
    53945394                 * Filters the extension of the emoji png files.
     
    54065406                 *
    54075407                 * @param string The emoji base URL for svg images.
    54085408                 */
    5409                 'svgUrl'  => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.4/svg/' ),
     5409                'svgUrl'  => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/11/svg/' ),
    54105410
    54115411                /**
    54125412                 * Filters the extension of the emoji SVG files.
  • src/wp-includes/general-template.php

     
    29372937         * The path is removed in the foreach loop below.
    29382938         */
    29392939        /** This filter is documented in wp-includes/formatting.php */
    2940         $hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.4/svg/' );
     2940        $hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/11/svg/' );
    29412941
    29422942        foreach ( $hints as $relation_type => $urls ) {
    29432943                $unique_urls = array();
  • tests/phpunit/tests/formatting/Emoji.php

     
    66 */
    77class Tests_Formatting_Emoji extends WP_UnitTestCase {
    88
    9         private $png_cdn = 'https://s.w.org/images/core/emoji/2.4/72x72/';
    10         private $svn_cdn = 'https://s.w.org/images/core/emoji/2.4/svg/';
     9        private $png_cdn = 'https://s.w.org/images/core/emoji/11/72x72/';
     10        private $svn_cdn = 'https://s.w.org/images/core/emoji/11/svg/';
    1111
    1212        /**
    1313         * @ticket 36525