Changeset 24208
- Timestamp:
- 05/08/2013 10:45:58 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r24066 r24208 3922 3922 */ 3923 3923 function wp_auth_check_html() { 3924 $login_url = wp_login_url();3924 $login_url = site_url( 'wp-login.php', 'login_post' ); 3925 3925 $current_domain = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST']; 3926 3926 $same_domain = ( strpos( $login_url, $current_domain ) === 0 ); -
trunk/wp-includes/js/wp-auth-check.js
r24179 r24208 65 65 66 66 wrap.fadeOut( 200, function() { 67 wrap.addClass('hidden').css('display', '') ;67 wrap.addClass('hidden').css('display', '').find('.wp-auth-check-close').css('display', ''); 68 68 $('#wp-auth-check-frame').remove(); 69 69 }); -
trunk/wp-login.php
r24207 r24208 101 101 ?> 102 102 <style type="text/css">html{background-color: transparent;}</style> 103 <base target="_blank">104 103 <?php 105 104 … … 664 663 $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.")); 665 664 666 $form_target = '';667 665 if ( $interim_login ) { 668 $form_target = ' target="_self"';669 666 if ( ! $errors->get_error_code() ) 670 667 $errors->add('expired', __('Session expired. Please log in again. You will not move away from this page.'), 'message'); … … 698 695 ?> 699 696 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"> 701 698 <p> 702 699 <label for="user_login"><?php _e('Username') ?><br /> … … 758 755 <?php } ?> 759 756 if(typeof wpOnload=='function')wpOnload(); 757 <?php if ( $interim_login ) { ?> 758 (function(){ 759 try { 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 } ?> 760 768 </script> 761 769
Note: See TracChangeset
for help on using the changeset viewer.