Changeset 46640
- Timestamp:
- 11/03/2019 08:10:23 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r45932 r46640 42 42 43 43 if ( ! $update && isset( $_POST['user_login'] ) ) { 44 $user->user_login = sanitize_user( $_POST['user_login'], true );44 $user->user_login = sanitize_user( , true ); 45 45 } 46 46 -
trunk/src/wp-includes/user.php
r46417 r46640 36 36 37 37 if ( ! empty( $_POST['log'] ) ) { 38 $credentials['user_login'] = $_POST['log'];38 $credentials['user_login'] = ; 39 39 } 40 40 if ( ! empty( $_POST['pwd'] ) ) { -
trunk/src/wp-login.php
r46620 r46640 1033 1033 if ( $http_post ) { 1034 1034 if ( isset( $_POST['user_login'] ) && is_string( $_POST['user_login'] ) ) { 1035 $user_login = $_POST['user_login'];1035 $user_login = ; 1036 1036 } 1037 1037 … … 1151 1151 // If the user wants SSL but the session is not SSL, force a secure cookie. 1152 1152 if ( ! empty( $_POST['log'] ) && ! force_ssl_admin() ) { 1153 $user_name = sanitize_user( $_POST['log']);1153 $user_name = sanitize_user( ); 1154 1154 $user = get_user_by( 'login', $user_name ); 1155 1155 -
trunk/tests/phpunit/tests/user.php
r46586 r46640 36 36 self::$user_ids[] = self::$contrib_id; 37 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 38 54 self::$author_id = $factory->user->create( 39 55 array( … … 64 80 65 81 $this->author = clone self::$_author; 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 66 100 } 67 101
Note: See TracChangeset
for help on using the changeset viewer.