WordPress.org

Make WordPress Core

Changeset 41386


Ignore:
Timestamp:
09/17/2017 10:51:42 PM (2 years ago)
Author:
peterwilsoncc
Message:

Emoji: Invert value returned by UN test for accuracy.

The JavaScript testing for UN flag support was passing when it failed, and failing when it passes.

This inverts the result to take more traditional approach of returning the correct result.

Unprops Pento.
Fixes #41852.

Location:
trunk/src/wp-includes/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-models.js

    r41351 r41386  
    1313 * @alias wp.media
    1414 * @memberOf wp
     15 * @namespace
    1516 *
    1617 * @param  {object} attributes The properties passed to the main media controller.
     
    5253};
    5354
    54 /** @namespace wp.media */
    5555/** @namespace wp.media.model */
    5656/** @namespace wp.media.view */
  • trunk/src/wp-includes/js/wp-emoji-loader.js

    r40936 r41386  
    5555                flag2 = canvas.toDataURL();
    5656
    57                 if ( flag !== flag2 ) {
     57                if ( flag === flag2 ) {
    5858                    return false;
    5959                }
Note: See TracChangeset for help on using the changeset viewer.