From 2fc115592093e985144bc63aa6d306e649d90675 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 13 Dec 2014 22:07:58 +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. See #30703. git-svn-id: https://develop.svn.wordpress.org/trunk@30842 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-advanced.php | 2 +- src/wp-admin/edit-form-comment.php | 2 ++ src/wp-admin/edit-tag-form.php | 3 +++ src/wp-admin/edit-tags.php | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php index 5acdb87b54..d16f5d97cf 100644 --- a/src/wp-admin/edit-form-advanced.php +++ b/src/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/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index b2950f77b5..d6e3d4e1a0 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/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' );