Give login screen proper iPhone viewport, props noel, fixes #10023
git-svn-id: https://develop.svn.wordpress.org/trunk@11514 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
71be7610db
commit
5bf8c2ce66
15
wp-login.php
15
wp-login.php
@ -39,7 +39,7 @@ if ( force_ssl_admin() && !is_ssl() ) {
|
||||
* @param WP_Error $wp_error Optional. WordPress Error Object
|
||||
*/
|
||||
function login_header($title = 'Log In', $message = '', $wp_error = '') {
|
||||
global $error;
|
||||
global $error, $is_iphone;
|
||||
|
||||
// Don't index any of these forms
|
||||
add_filter( 'pre_option_blog_public', create_function( '$a', 'return 0;' ) );
|
||||
@ -56,6 +56,17 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') {
|
||||
<?php
|
||||
wp_admin_css( 'login', true );
|
||||
wp_admin_css( 'colors-fresh', true );
|
||||
|
||||
if ( $is_iphone ) {
|
||||
?>
|
||||
<meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" />
|
||||
<style type="text/css" media="screen">
|
||||
form { margin-left: 0px; }
|
||||
#login { margin-top: 20px; }
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
do_action('login_head'); ?>
|
||||
</head>
|
||||
<body class="login">
|
||||
@ -539,4 +550,4 @@ try{document.getElementById('user_login').focus();}catch(e){}
|
||||
|
||||
break;
|
||||
} // end action switch
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user