From 7dd30dce0a0833e4aca5e15998de24a3a4e39ac4 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 16 Dec 2014 15:52:23 +0000 Subject: [PATCH] Do not autofocus text fields on page load on mobile devices. This is currently broken in many mobile browsers: - iOS Safari opens the keyboard and auto-scrolls on the first tap anywhere on the screen triggering the click at an unexpected place. That makes it impossible to follow links or press buttons. - Chrome on iOS opens the keyboard on load and may scroll the focused field off screen. - The Android 4.4 browser only highlights the field, the user has to tap it to open the keyboard and type. Merges [30842] to the 4.1 branch. See #30703. Built from https://develop.svn.wordpress.org/branches/4.1@30908 git-svn-id: http://core.svn.wordpress.org/branches/4.1@30898 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 2 +- wp-admin/edit-form-comment.php | 2 ++ wp-admin/edit-tag-form.php | 3 +++ wp-admin/edit-tags.php | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index bb513903b2..a9222ce6fc 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -647,7 +647,7 @@ if ( post_type_supports( $post_type, 'comments' ) ) wp_comment_reply(); ?> -post_title ) : ?> +post_title ) : ?> diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index b2950f77b5..d6e3d4e1a0 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -155,6 +155,8 @@ do_meta_boxes(null, 'normal', $comment); + + + + + + + inline_edit(); include( ABSPATH . 'wp-admin/admin-footer.php' );