Media: Fix JavaScript TypeError after [45376].

Props desrosj, afercia.
Fixes #48021.

Built from https://develop.svn.wordpress.org/trunk@46321


git-svn-id: http://core.svn.wordpress.org/trunk@46120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2019-09-26 13:06:56 +00:00
parent 2a8854ca9d
commit abb00ee8a4
3 changed files with 6 additions and 4 deletions

View File

@ -5321,8 +5321,10 @@ UploaderStatus = View.extend(/** @lends wp.media.view.UploaderStatus.prototype *
} }
wp.Uploader.errors.reset(); wp.Uploader.errors.reset();
// Move focus to the modal after the dismiss button gets removed from the DOM. // Move focus to the modal after the dismiss button gets removed from the DOM.
if ( this.controller.modal ) {
this.controller.modal.focusManager.focus(); this.controller.modal.focusManager.focus();
} }
}
}); });
module.exports = UploaderStatus; module.exports = UploaderStatus;

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.3-beta1-46320'; $wp_version = '5.3-beta1-46321';
/** /**
* 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.