diff --git a/wp-includes/js/wpdialog.js b/wp-includes/js/wpdialog.js index 9f5c19bae4..baf1f2f01a 100644 --- a/wp-includes/js/wpdialog.js +++ b/wp-includes/js/wpdialog.js @@ -1,3 +1,6 @@ +/* + * Wrap the jQuery UI Dialog open function remove focus from tinyMCE. + */ ( function($) { $.widget('wp.wpdialog', $.ui.dialog, { open: function() { @@ -8,6 +11,7 @@ // Open the dialog. this._super(); + // WebKit leaves focus in the TinyMCE editor unless we shift focus. this.element.focus(); this._trigger('refresh'); diff --git a/wp-includes/version.php b/wp-includes/version.php index fe43eb3716..0a31022cc2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43143'; +$wp_version = '5.0-alpha-43144'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.