Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmyta committed Jan 20, 2025
1 parent bc7aa77 commit b28c8cf
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,7 @@ public function mask_email_address( string $email ): string {
* @return bool True if the email was sent successfully, false otherwise.
*/
public function send( \WP_User $user ): bool {
// $site_url = home_url();
// $parsed_url = wp_parse_url( $site_url );
// $domain_name = $parsed_url['host'];
// $username = $user->user_login;
// $email = $user->user_email;

// $key = get_password_reset_key( $user );
// $locale = get_user_locale( $user );
// $password_reset_link = network_site_url( 'wp-login.php?login=' . rawurlencode( $username ) . "&key=$key&action=rp", 'login' ) . '&wp_lang=' . $locale;

// TODO: Update to use custom email method when available, passing $domain_name, $email, $username, and $password_reset_link
// TODO: Update to use custom email method when available
return $user ? true : false;

Check failure on line 44 in projects/packages/account-protection/src/class-password-reset-email.php

View workflow job for this annotation

GitHub Actions / Static analysis

TypeError PhanRedundantCondition Redundant attempt to cast $user of type \WP_User to truthy
}
}

0 comments on commit b28c8cf

Please sign in to comment.