diff --git a/includes/class-magic-link.php b/includes/class-magic-link.php index a39f20563f..d7ded615fc 100644 --- a/includes/class-magic-link.php +++ b/includes/class-magic-link.php @@ -284,7 +284,7 @@ private static function generate_url( $user, $url = '' ) { return \add_query_arg( [ 'action' => self::AUTH_ACTION, - 'email' => $user->user_email, + 'email' => urlencode( $user->user_email ), 'token' => $token_data['token'], ], ! empty( $url ) ? $url : \home_url()