Make WordPress Core

Changeset 41396 for branches/4.8


Ignore:
Timestamp:
09/19/2017 08:28:55 AM (9 years ago)
Author:
ocean90
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.

Merge of [41386] to the 4.8 branch.

Unprops Pento.
Fixes #41852.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/src/wp-includes/js/wp-emoji-loader.js

    r40850 r41396  
    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.