Customize: Ensure the default message in `LockedNotification` is set to a string instead of `null`.

This avoids a JS error when passing the message to `wp.a11y.speak()` when showing the "changeset is locked" overlay to prevent two users from editing the same changeset simultaneously.

Props dlh.
Fixes #50500.
Built from https://develop.svn.wordpress.org/trunk@48210


git-svn-id: http://core.svn.wordpress.org/trunk@47979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-06-29 09:49:05 +00:00
parent cd0349b301
commit 71244fc29e
3 changed files with 3 additions and 2 deletions

View File

@ -8128,6 +8128,7 @@
_code = code || 'changeset_locked'; _code = code || 'changeset_locked';
_params = _.extend( _params = _.extend(
{ {
message: '',
type: 'warning', type: 'warning',
containerClasses: '', containerClasses: '',
lockUser: {} lockUser: {}

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-alpha-48209'; $wp_version = '5.5-alpha-48210';
/** /**
* 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.