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:
parent
2a8854ca9d
commit
abb00ee8a4
|
@ -5321,7 +5321,9 @@ 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.
|
||||||
this.controller.modal.focusManager.focus();
|
if ( this.controller.modal ) {
|
||||||
|
this.controller.modal.focusManager.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue