X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9441756a895fb4fdc4bcf20e0d228cef622663ca..784f914b1e4b1c62d6657e86397c2e83bcee4295:/wp-login.php?ds=sidebyside diff --git a/wp-login.php b/wp-login.php index a9589f56..ed3878c2 100644 --- a/wp-login.php +++ b/wp-login.php @@ -56,6 +56,8 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) ) add_action( 'login_head', 'wp_shake_js', 12 ); + $separator = is_rtl() ? ' › ' : ' ‹ '; + ?> - <?php bloginfo('name'); ?> › <?php echo $title; ?> + <?php echo get_bloginfo( 'name', 'display' ) . $separator . $title; ?> -

+

@@ -526,7 +529,7 @@ case 'retrievepassword' :

-

| - +

ID) ) { $secure_cookie = true; force_ssl_admin(true); @@ -821,6 +830,9 @@ default: $redirect_to = get_dashboard_url( $user->ID ); elseif ( !$user->has_cap('edit_posts') ) $redirect_to = $user->has_cap( 'read' ) ? admin_url( 'profile.php' ) : home_url(); + + wp_redirect( $redirect_to ); + exit(); } wp_safe_redirect($redirect_to); exit(); @@ -833,7 +845,7 @@ default: if ( $interim_login ) { if ( ! $errors->get_error_code() ) - $errors->add('expired', __('Session expired. Please log in again. You will not move away from this page.'), 'message'); + $errors->add( 'expired', __( 'Your session has expired. Please log in to continue where you left off.' ), 'message' ); } else { // Some parts of this script use the main login form to display a message if ( isset($_GET['loggedout']) && true == $_GET['loggedout'] ) @@ -879,7 +891,7 @@ default:

-

@@ -919,7 +931,7 @@ default: echo apply_filters( 'register', $registration_url ) . ' | '; endif; ?> - +