diff --git a/wp-login.php b/wp-login.php index f7439fb862..d95c49bbfe 100644 --- a/wp-login.php +++ b/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, $interim_login, $current_site; + global $error, $interim_login, $current_site, $action; // Don't index any of these forms add_action( 'login_head', 'wp_no_robots' ); @@ -86,9 +86,15 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') { if ( $interim_login ) $login_header_url = '#'; + $classes = array( 'login-action-' . $action ); + if ( wp_is_mobile() ) + $classes[] = 'mobile'; + if ( is_rtl() ) + $classes[] = 'rtl'; + $classes = apply_filters( 'login_body_class', $classes, $action ); ?> - +