From 52f139829cf83be4b47cf6b621d7e5b36044c286 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 29 Jun 2020 09:47:11 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@48210 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/wp/customize/controls.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/_enqueues/wp/customize/controls.js b/src/js/_enqueues/wp/customize/controls.js index 47272c8b3e..f2866e5011 100644 --- a/src/js/_enqueues/wp/customize/controls.js +++ b/src/js/_enqueues/wp/customize/controls.js @@ -8128,6 +8128,7 @@ _code = code || 'changeset_locked'; _params = _.extend( { + message: '', type: 'warning', containerClasses: '', lockUser: {}