mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 11:03:43 +03:00
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:
parent
e61ce467cb
commit
00e88cc2de
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue