WordPress.org

Make WordPress Core

Ticket #23295: 23295-8.patch

File 23295-8.patch, 2.2 KB (added by azaozz, 5 years ago)
  • wp-includes/js/wp-auth-check.js

     
    6666                wrap.fadeOut( 200, function() {
    6767                        wrap.addClass('hidden').css('display', '');
    6868                        $('#wp-auth-check-frame').remove();
     69                        wrap.find('.wp-auth-check-close').hide();
    6970                });
    7071        }
    7172
  • wp-login.php

     
    100100                $classes[] = 'interim-login';
    101101                ?>
    102102                <style type="text/css">html{background-color: transparent;}</style>
    103                 <base target="_blank">
    104103                <?php
    105104
    106105                if ( 'success' ===  $interim_login )
     
    663662        if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
    664663                $errors->add('test_cookie', __("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href='http://www.google.com/cookies.html'>enable cookies</a> to use WordPress."));
    665664
    666         $form_target = '';
    667665        if ( $interim_login ) {
    668                 $form_target = ' target="_self"';
    669666                if ( ! $errors->get_error_code() )
    670667                        $errors->add('expired', __('Session expired. Please log in again. You will not move away from this page.'), 'message');
    671668        } else {
     
    697694        $rememberme = ! empty( $_POST['rememberme'] );
    698695?>
    699696
    700 <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post"<?php echo $form_target; ?>>
     697<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    701698        <p>
    702699                <label for="user_login"><?php _e('Username') ?><br />
    703700                <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
     
    757754wp_attempt_focus();
    758755<?php } ?>
    759756if(typeof wpOnload=='function')wpOnload();
     757<?php if ( $interim_login ) { ?>
     758(function(){
     759try {
     760        var i, links = document.getElementsByTagName('a');
     761        for ( i in links ) {
     762                if ( links[i].href )
     763                        links[i].target = '_blank';
     764        }
     765} catch(e){}
     766}());
     767<?php } ?>
    760768</script>
    761769
    762770<?php