Pledge Form: Always insert user_login for consistency.

df78e3de80 started allowing `user_nicename`s in the form field, but we need to always create the contributor posts with the `user_login`, because there are many other places in the code that expect the `post_title` to be the `user_login` and not the `user_nicename`.

See #57
This commit is contained in:
Ian Dunn 2019-10-30 23:30:34 -05:00
parent e61ce467cb
commit 00e88cc2de
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB

View file

@ -322,7 +322,7 @@ function parse_contributors( $contributors ) {
}
if ( $user instanceof WP_User ) {
$sanitized_contributors[] = $sanitized_username;
$sanitized_contributors[] = $user->user_login;
} else {
$invalid_contributors[] = $wporg_username;
}