diff --git a/plugins/wporg-5ftf/includes/pledge-form.php b/plugins/wporg-5ftf/includes/pledge-form.php index 21ef9a9..bd2cb15 100755 --- a/plugins/wporg-5ftf/includes/pledge-form.php +++ b/plugins/wporg-5ftf/includes/pledge-form.php @@ -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 {