WordPress.org

Make WordPress Core

Changeset 40609


Ignore:
Timestamp:
05/10/2017 10:43:47 PM (2 years ago)
Author:
peterwilsoncc
Message:

Emoji: Clear canvas between flag tests.

Clear the canvas following the two flag tests following [40582].

Fixes #40616.

File:
1 edited

Legend:

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

    r40582 r40609  
    6767                 * the browser doesn't render it correctly (white flag emoji + rainbow emoji).
    6868                 */
     69                // Cleanup from previous test.
     70                context.clearRect( 0, 0, canvas.width, canvas.height );
     71
    6972                context.fillText( stringFromCharCode( 55356, 57331, 65039, 8205, 55356, 57096 ), 0, 0 );
    7073                flag = canvas.toDataURL();
Note: See TracChangeset for help on using the changeset viewer.