diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c10709c167..b3fd0580df 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3921,7 +3921,7 @@ function wp_auth_check_load() { * Output the HTML that shows the wp-login dialog when the user is no longer logged in */ function wp_auth_check_html() { - $login_url = wp_login_url(); + $login_url = site_url( 'wp-login.php', 'login_post' ); $current_domain = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST']; $same_domain = ( strpos( $login_url, $current_domain ) === 0 ); diff --git a/wp-includes/js/wp-auth-check.js b/wp-includes/js/wp-auth-check.js index ac8b2506ae..fb388298ca 100644 --- a/wp-includes/js/wp-auth-check.js +++ b/wp-includes/js/wp-auth-check.js @@ -64,7 +64,7 @@ $(window).off( 'beforeunload.wp-auth-check' ); wrap.fadeOut( 200, function() { - wrap.addClass('hidden').css('display', ''); + wrap.addClass('hidden').css('display', '').find('.wp-auth-check-close').css('display', ''); $('#wp-auth-check-frame').remove(); }); } diff --git a/wp-login.php b/wp-login.php index 02b42f911b..ddde661667 100644 --- a/wp-login.php +++ b/wp-login.php @@ -100,7 +100,6 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') { $classes[] = 'interim-login'; ?> - add('test_cookie', __("ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.")); - $form_target = ''; if ( $interim_login ) { - $form_target = ' target="_self"'; if ( ! $errors->get_error_code() ) $errors->add('expired', __('Session expired. Please log in again. You will not move away from this page.'), 'message'); } else { @@ -697,7 +694,7 @@ default: $rememberme = ! empty( $_POST['rememberme'] ); ?> -
> +

@@ -757,6 +754,17 @@ d.select(); wp_attempt_focus(); if(typeof wpOnload=='function')wpOnload(); + +(function(){ +try { + var i, links = document.getElementsByTagName('a'); + for ( i in links ) { + if ( links[i].href ) + links[i].target = '_blank'; + } +} catch(e){} +}()); +