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

Props manikmist09.
Fixes #43005.
Built from https://develop.svn.wordpress.org/trunk@42604


git-svn-id: http://core.svn.wordpress.org/trunk@42433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-01-24 22:31:30 +00:00
parent 6bb7fcebf4
commit ea6f648401
3 changed files with 3 additions and 3 deletions

View File

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

File diff suppressed because one or more lines are too long

View File

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