From 77a7702deb8425562bba455e38b3155677df889b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Wed, 25 Sep 2013 15:20:09 +0000 Subject: [PATCH] Simplify the login page viewport meta for mobile devices, so it's less restrictive on the user. Allows for developers to override if necessary via the `login_head` action. props azaozz. fixes #24777. Built from https://develop.svn.wordpress.org/trunk@25619 git-svn-id: http://core.svn.wordpress.org/trunk@25536 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-login.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/wp-login.php b/wp-login.php index 3cda41c3ff..6513f777ce 100644 --- a/wp-login.php +++ b/wp-login.php @@ -44,6 +44,9 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') { // Don't index any of these forms add_action( 'login_head', 'wp_no_robots' ); + if ( wp_is_mobile() ) + add_action( 'login_head', 'wp_login_viewport_meta' ); + if ( empty($wp_error) ) $wp_error = new WP_Error(); @@ -64,10 +67,6 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') { wp_admin_css( 'wp-admin', true ); wp_admin_css( 'colors-fresh', true ); - if ( wp_is_mobile() ) { ?> - + +