Ticket #24777: 24777.3.patch
| File 24777.3.patch, 1.0 KB (added by , 13 years ago) |
|---|
-
wp-login.php
44 44 // Don't index any of these forms 45 45 add_action( 'login_head', 'wp_no_robots' ); 46 46 47 if ( wp_is_mobile() ) 48 add_action( 'login_head', 'login_viewport_meta' ); 49 47 50 if ( empty($wp_error) ) 48 51 $wp_error = new WP_Error(); 49 52 … … 64 67 wp_admin_css( 'wp-admin', true ); 65 68 wp_admin_css( 'colors-fresh', true ); 66 69 67 if ( wp_is_mobile() ) { ?>68 <meta name="viewport" content="width=320, initial-scale=0.9, maximum-scale=1.0, user-scalable=0" /><?php69 }70 71 70 // Remove all stored post data on logging out. 72 71 // This could be added by add_action('login_head'...) like wp_shake_js() 73 72 // but maybe better if it's not removable by plugins … … 189 188 <?php 190 189 } 191 190 191 function login_viewport_meta() { 192 ?> 193 <meta name="viewport" content="width=device-width" /> 194 <?php 195 } 196 192 197 /** 193 198 * Handles sending password retrieval email to user. 194 199 *