Changeset 43776 for branches/5.0/src/wp-login.php
- Timestamp:
- 10/21/2018 03:02:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-login.php
r43458 r43776 438 438 setcookie( TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN, $secure ); 439 439 440 $lang = ! empty( $_GET['wp_lang'] ) ? sanitize_text_field( $_GET['wp_lang'] ) : '';441 $switched_locale = switch_to_locale( $lang );442 443 440 /** 444 441 * Fires when the login form is initialized. … … 501 498 setcookie( 'wp-postpass_' . COOKIEHASH, $hasher->HashPassword( wp_unslash( $_POST['post_password'] ) ), $expire, COOKIEPATH, COOKIE_DOMAIN, $secure ); 502 499 503 if ( $switched_locale ) {504 restore_previous_locale();505 }506 507 500 wp_safe_redirect( wp_get_referer() ); 508 501 exit(); … … 520 513 $redirect_to = 'wp-login.php?loggedout=true'; 521 514 $requested_redirect_to = ''; 522 }523 524 if ( $switched_locale ) {525 restore_previous_locale();526 515 } 527 516 … … 618 607 <?php 619 608 login_footer('user_login'); 620 621 if ( $switched_locale ) {622 restore_previous_locale();623 }624 609 625 610 break; … … 748 733 login_footer('user_pass'); 749 734 750 if ( $switched_locale ) {751 restore_previous_locale();752 }753 754 735 break; 755 736 … … 834 815 <?php 835 816 login_footer('user_login'); 836 837 if ( $switched_locale ) {838 restore_previous_locale();839 }840 817 841 818 break; … … 1120 1097 login_footer(); 1121 1098 1122 if ( $switched_locale ) {1123 restore_previous_locale();1124 }1125 1126 1099 break; 1127 1100 } // end action switch
Note: See TracChangeset
for help on using the changeset viewer.