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:
Sergey Biryukov 2018-01-24 22:30:12 +00:00
parent fdb0551c5a
commit 9feedd0b0d
1 changed files with 1 additions and 1 deletions

View File

@ -2423,7 +2423,7 @@
return;
}
if ( 'undefined' === typeof message.action ) {
if ( ! message || 'undefined' === typeof message.action ) {
return;
}