From 21e770973cf34a7d2107ee83d29efab5dd0f8b2f Mon Sep 17 00:00:00 2001 From: atimmer Date: Thu, 3 May 2018 15:27:21 +0000 Subject: [PATCH] Docs: Improve JSDoc for `wp-includes.js/wpdialog.js`. Props igorsch, LisanneKluitmans, manuelaugustin. Fixes #43947. Built from https://develop.svn.wordpress.org/trunk@43144 git-svn-id: http://core.svn.wordpress.org/trunk@42973 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/wpdialog.js | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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.