X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/784f914b1e4b1c62d6657e86397c2e83bcee4295..e3ff8f35458a959c1879c0a4976701ed8dcfe651:/wp-login.php diff --git a/wp-login.php b/wp-login.php index ed3878c2..4e189d86 100644 --- a/wp-login.php +++ b/wp-login.php @@ -36,8 +36,7 @@ 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' ); + add_action( 'login_head', 'wp_login_viewport_meta' ); if ( empty($wp_error) ) $wp_error = new WP_Error(); @@ -45,7 +44,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { // Shake it! $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' ); /** - * Filter the error codes array for shaking the login form. + * Filters the error codes array for shaking the login form. * * @since 3.0.0 * @@ -99,22 +98,23 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { if ( is_multisite() ) { $login_header_url = network_home_url(); - $login_header_title = get_current_site()->site_name; + $login_header_title = get_network()->site_name; } else { $login_header_url = __( 'https://wordpress.org/' ); $login_header_title = __( 'Powered by WordPress' ); } /** - * Filter link URL of the header logo above login form. + * Filters link URL of the header logo above login form. * * @since 2.1.0 * * @param string $login_header_url Login header logo URL. */ $login_header_url = apply_filters( 'login_headerurl', $login_header_url ); + /** - * Filter the title attribute of the header logo above login form. + * Filters the title attribute of the header logo above login form. * * @since 2.1.0 * @@ -123,8 +123,6 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { $login_header_title = apply_filters( 'login_headertitle', $login_header_title ); $classes = array( 'login-action-' . $action, 'wp-core-ui' ); - if ( wp_is_mobile() ) - $classes[] = 'mobile'; if ( is_rtl() ) $classes[] = 'rtl'; if ( $interim_login ) { @@ -139,7 +137,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { $classes[] =' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); /** - * Filter the login page body classes. + * Filters the login page body classes. * * @since 3.5.0 * @@ -151,6 +149,14 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { ?> +

-

+

@@ -248,8 +257,6 @@ function login_footer($input_id = '') { * @since 3.0.0 */ function wp_shake_js() { - if ( wp_is_mobile() ) - return; ?>