Skip to content

Conversation

@rodrigoprimo
Copy link
Contributor

Changes proposed in this Pull Request:

lostpassword_post is a WP action that is duplicated in WooCommerce to replicate the functionality to retrieve user password in the 'My Account' pages. WP recently added the variable $user_data as a second parameter to this action (WordPress/WordPress@a6cecef). This commit simply copies this change to the version of the action that we maintain. Similar to what was done in 1a99235 when a first parameter was added to the action in WP and we had to do the same in WC core.

Closes #28428

How to test the changes in this Pull Request:

  1. Check that resetting the password in /my-account/lost-password/ still works.
  2. Check that when the action lostpassword_post is called via /my-account/lost-password/ any functions hooked to it will receive two parameters ($errors and $user_data).

Changelog entry

Dev: add a missing second parameter to our copy of the WP action lostpassword_post

`lostpassword_post` is a WP action that is duplicated in WooCommerce to replicate the functionality to retrieve user password in the 'My Account' pages. WP recently added the variable `$user_data` as a second parameter to this action (WordPress/WordPress@a6cecef). This commit simply copies this change to the version of the action that we maintain. Similar to what was done in 1a99235 when a first parameter as added to the action in WP and we had to do the same in WC core.
@rodrigoprimo rodrigoprimo added this to the 4.9.0 milestone Dec 2, 2020
@rodrigoprimo rodrigoprimo requested review from a team and Konamiman and removed request for a team December 2, 2020 13:02
@Konamiman Konamiman merged commit af3077b into master Dec 2, 2020
@Konamiman Konamiman deleted the fix/28428 branch December 2, 2020 14:31
@woocommercebot woocommercebot added release: add changelog Mark all PRs that have not had their changelog entries added. [auto] release: add testing instructions PRs that have not had testing instructions added to the wiki. [auto] labels Dec 2, 2020
@vedanshujain vedanshujain removed the release: add changelog Mark all PRs that have not had their changelog entries added. [auto] label Dec 21, 2020
@juliaamosova juliaamosova added testing instructions added and removed release: add testing instructions PRs that have not had testing instructions added to the wiki. [auto] labels Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Action lostpassword_post misses second parameter

6 participants