From d15f9617f937cc8457ec1a3c9ef1904fb5e2afbd Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 31 Jul 2014 23:28:19 +0000 Subject: [PATCH] wpLink: - Fix adding a link on pressing Enter. - Don't auto-focus the URL field after selecting a local link. - Don't auto-focus the URL field when opening on touch devices. Toggle focus/blur on it to close the onscreen keyboard so the modal is positioned properly. See #28897. Built from https://develop.svn.wordpress.org/trunk@29333 git-svn-id: http://core.svn.wordpress.org/trunk@29113 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 2 +- wp-includes/js/wplink.js | 36 +++++++++++++++++++++------------ wp-includes/js/wplink.min.js | 2 +- wp-includes/version.php | 2 +- 4 files changed, 26 insertions(+), 16 deletions(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index b328bd19d9..9659336fe9 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -1376,7 +1376,7 @@ final class _WP_Editors {