Skip to content

SSO: Pass error value to wp_login_failed#14821

Merged
jeherve merged 1 commit intomasterfrom
update/sso-wp-54
Feb 27, 2020
Merged

SSO: Pass error value to wp_login_failed#14821
jeherve merged 1 commit intomasterfrom
update/sso-wp-54

Conversation

@kraftbj
Copy link
Copy Markdown
Contributor

@kraftbj kraftbj commented Feb 26, 2020

WP 5.4 now passes the authentication error via the wp_login_failed filter.

Adding this prevents notices, etc if code utilizes the new arg.

Open question for a future PR on if we should have been passing that error in the return. We haven't so don't want to conflate that with this.

Marking it for 8.3 late commit consideration to beat the Core release.

Changes proposed in this Pull Request:

  • Sets a WP_Error and passes it to the filter.

Is this a new feature or does it add/remove features to an existing part of Jetpack?

  • N/A

Testing instructions:

  • TBA

Proposed changelog entry for your changes:

  • SSO: Add error argument for compatibility with a WordPress 5.4 hook change.

@kraftbj kraftbj added Bug When a feature is broken and / or not performing as intended [Feature] SSO [Status] Needs Review This PR is ready for review. labels Feb 26, 2020
@kraftbj kraftbj added this to the 8.3 milestone Feb 26, 2020
@kraftbj kraftbj requested a review from a team February 26, 2020 22:42
@kraftbj kraftbj self-assigned this Feb 26, 2020
@jetpackbot
Copy link
Copy Markdown
Collaborator

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: March 3, 2020.
Scheduled code freeze: February 25, 2020

Generated by 🚫 dangerJS against cf450c5

Copy link
Copy Markdown
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Merging.

@jeherve jeherve added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Feb 27, 2020
@jeherve jeherve merged commit 5e78d8f into master Feb 27, 2020
mdbitz added a commit that referenced this pull request Feb 27, 2020
@mdbitz
Copy link
Copy Markdown
Contributor

mdbitz commented Feb 27, 2020

cherry picked to branch-8.3

1d82ae6

@mdbitz mdbitz removed [Status] Needs Cherry-Pick [Status] Ready to Merge Go ahead, you can push that green button! labels Feb 27, 2020
@jeherve jeherve deleted the update/sso-wp-54 branch February 27, 2020 16:13
mdbitz added a commit that referenced this pull request Feb 27, 2020
@mdbitz
Copy link
Copy Markdown
Contributor

mdbitz commented Feb 27, 2020

Changelog added in #14830

mdbitz added a commit that referenced this pull request Feb 27, 2020
@Automattic Automattic deleted a comment Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended [Feature] SSO

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants