Make WordPress Core


Ignore:
Timestamp:
11/04/2019 03:04:41 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Login and Registration: Simplify the test for wp_signon() added in [46640].

Make sure it actually tests the change in behavior, previously it passed both before and after the patch.

Add wp_unslash() to the last remaining instance of $_POST['user_login'] that didn't have it.

See #38744.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r46640 r46650  
    374374                }
    375375        } else {
    376                 $login     = trim( $_POST['user_login'] );
     376                $login     = trim( wp_unslash( $_POST['user_login'] ) );
    377377                $user_data = get_user_by( 'login', $login );
    378378        }
Note: See TracChangeset for help on using the changeset viewer.