WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#30607 closed defect (bug)

Errors in function retrieve_password — at Version 2

Reported by: diegofranca90 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0.1
Component: Login and Registration Keywords: reporter-feedback
Focuses: Cc:

Description (last modified by TobiasBg)

The functions have duplicate do_action('retrieve_password'), on lines 312 and 320.

Error on line 363, the link is incorrect:

$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";

I hope have helped and sorry my bad english, I'm brazilian.

Change History (2)

#1 @TobiasBg
5 years ago

  • Keywords reporter-feedback added

Hi @diegofranca90,

thanks for your report and for contributing to WordPress!

The first issue that you describe is not actually a bug: Note the difference between the two lines. In the first one, it's "retreive_password" (with "ei"), where it's "retrieve_password" (with "ie") in the second. To not run into backwards compatibility issues, both of the action hooks are being kept.

For your second issue: Can you please explain what is incorrect about that link? (Note that it's actually not a link for a website (with an <a> HTML tag), but a link/URL in an email.) Thanks!

#2 @TobiasBg
5 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.