mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
parent
1fad6f0eaa
commit
df78e3de80
1 changed files with 4 additions and 0 deletions
|
@ -316,6 +316,10 @@ function parse_contributors( $contributors ) {
|
|||
$sanitized_username = sanitize_user( $wporg_username );
|
||||
$user = get_user_by( 'login', $sanitized_username );
|
||||
|
||||
if ( ! $user instanceof WP_User ) {
|
||||
$user = get_user_by( 'slug', $sanitized_username );
|
||||
}
|
||||
|
||||
if ( $user instanceof WP_User ) {
|
||||
$sanitized_contributors[] = $sanitized_username;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue