Embeds: Avoid a JS error in wp.receiveEmbedMessage
if data
parameter is not set.
Props dsifford, kadamwhite. Fixes #44832. git-svn-id: https://develop.svn.wordpress.org/trunk@43593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8eebd125f0
commit
c1b7284c4b
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
window.wp.receiveEmbedMessage = function( e ) {
|
window.wp.receiveEmbedMessage = function( e ) {
|
||||||
var data = e.data;
|
var data = e.data;
|
||||||
if ( ! ( data.secret || data.message || data.value ) ) {
|
if ( ! data || ! ( data.secret || data.message || data.value ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user