Changeset 47122 for trunk/src/wp-login.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r47086 r47122 42 42 global $error, $interim_login, $action; 43 43 44 // Don't index any of these forms 44 // Don't index any of these forms. 45 45 add_action( 'login_head', 'wp_sensitive_page_meta' ); 46 46 … … 269 269 } 270 270 } 271 } // End of login_header() 271 } // End of login_header(). 272 272 273 273 /** … … 301 301 302 302 ?> 303 </div><?php // End of <div id="login"> ?>303 </div><?php // End of <div id="login">. ?> 304 304 305 305 <?php … … 508 508 header( 'Content-Type: ' . get_bloginfo( 'html_type' ) . '; charset=' . get_bloginfo( 'charset' ) ); 509 509 510 if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set 510 if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set. 511 511 if ( isset( $_SERVER['PATH_INFO'] ) && ( $_SERVER['PATH_INFO'] !== $_SERVER['PHP_SELF'] ) ) { 512 512 $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); … … 520 520 } 521 521 522 // Set a cookie now to see if they are supported by the browser.522 // Set a cookie now to see if they are supported by the browser. 523 523 $secure = ( 'https' === parse_url( wp_login_url(), PHP_URL_SCHEME ) ); 524 524 setcookie( TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN, $secure ); … … 561 561 562 562 case 'confirm_admin_email': 563 // Note that `is_user_logged_in()` will return false immediately after logging in 564 // as the current user is not set, see wp-includes/pluggable.php. 565 // However this action runs on a redirect after logging in. 563 /* 564 * Note that `is_user_logged_in()` will return false immediately after logging in 565 * as the current user is not set, see wp-includes/pluggable.php. 566 * However this action runs on a redirect after logging in. 567 */ 566 568 if ( ! is_user_logged_in() ) { 567 569 wp_safe_redirect( wp_login_url() ); … … 1211 1213 ); 1212 1214 } elseif ( isset( $_POST['testcookie'] ) && empty( $_COOKIE[ TEST_COOKIE ] ) ) { 1213 // If cookies are disabled we can't log in even with a valid user+pass1215 // If cookies are disabled, we can't log in even with a valid user and password. 1214 1216 $user = new WP_Error( 1215 1217 'test_cookie',
Note: See TracChangeset
for help on using the changeset viewer.