Upgrade/Install: In postMessage events handler, check for message object existence before checking its action property.

Props manikmist09.
Merges [42604] to the 4.9 branch.
Fixes #43005.
Built from https://develop.svn.wordpress.org/branches/4.9@42605


git-svn-id: http://core.svn.wordpress.org/branches/4.9@42434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-01-24 22:32:38 +00:00
parent ff4c656579
commit 2c492ab774
3 changed files with 3 additions and 3 deletions

View File

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

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9.3-alpha-42603'; $wp_version = '4.9.3-alpha-42605';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.