WordPress.org

Make WordPress Core

Changeset 37256


Ignore:
Timestamp:
04/20/2016 01:55:18 PM (4 years ago)
Author:
pento
Message:

Emoji: The diversity support test was incorrectly passing on all browsers.

[37028] missed some logic to capture the base emoji skin tone, to compare to the modified emoji skin tone. This caused all browsers to report that they supported skin tone modifiers, regardless of whether they actually did.

Fixes #36604 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wp-emoji-loader.js

    r37029 r37256  
    5050                context.fillText( stringFromCharCode( 55356, 57221 ), 0, 0 );
    5151                tonedata = context.getImageData( 16, 16, 1, 1 ).data;
     52                tone = tonedata[0] + ',' + tonedata[1] + ',' + tonedata[2] + ',' + tonedata[3];
    5253
    5354                context.fillText( stringFromCharCode( 55356, 57221, 55356, 57343 ), 0, 0 );
Note: See TracChangeset for help on using the changeset viewer.