WordPress.org

Make WordPress Core

Changeset 43597


Ignore:
Timestamp:
08/30/2018 12:39:07 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Embeds: After [43593], move the new check to a separate line to avoid test_js_no_ampersands_in_compiled failure caused by UglifyJS task.

See #44832.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/embed.js

    r43593 r43597  
    3030    window.wp.receiveEmbedMessage = function( e ) {
    3131        var data = e.data;
    32         if ( ! data || ! ( data.secret || data.message || data.value ) ) {
     32
     33        if ( ! data ) {
     34            return;
     35        }
     36
     37        if ( ! ( data.secret || data.message || data.value ) ) {
    3338            return;
    3439        }
Note: See TracChangeset for help on using the changeset viewer.