Upgrade/Install: In `postMessage` events handler, check for `message` object existence before checking its `action` property.
Props manikmist09. Fixes #43005. git-svn-id: https://develop.svn.wordpress.org/trunk@42604 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fdb0551c5a
commit
9feedd0b0d
|
@ -2423,7 +2423,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if ( 'undefined' === typeof message.action ) {
|
||||
if ( ! message || 'undefined' === typeof message.action ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue