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.

git-svn-id: https://develop.svn.wordpress.org/trunk@43597 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2018-08-30 12:39:07 +00:00
parent 0b4334c5e3
commit a0ae2c5d85
1 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,12 @@
window.wp.receiveEmbedMessage = function( e ) {
var data = e.data;
if ( ! data || ! ( data.secret || data.message || data.value ) ) {
if ( ! data ) {
return;
}
if ( ! ( data.secret || data.message || data.value ) ) {
return;
}