Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account for validation-wrapped callbacks in plugin suppression #6812

Merged
merged 8 commits into from
Jan 26, 2022

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented Dec 23, 2021

Summary

Fixes #6809

Given the example plugin in #6809, with it being suppressed in Plugin Suppression, the changes in this PR ensure that the plugin's hooks are suppressed even during a validation request (in which they are wrapped to locate sources), just as they are suppressed when making a regular frontend request:

Before After
image image

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@westonruter westonruter added this to the v2.3 milestone Dec 23, 2021
@westonruter westonruter modified the milestones: v2.3, v2.2.1 Jan 14, 2022
@westonruter westonruter force-pushed the fix/plugin-suppression-at-wp-action branch from 894dfc4 to e0ea024 Compare January 20, 2022 23:27
@westonruter westonruter force-pushed the fix/plugin-suppression-at-wp-action branch from 2978a00 to 0d1b811 Compare January 22, 2022 00:18
@westonruter westonruter marked this pull request as ready for review January 22, 2022 01:14
@github-actions
Copy link
Contributor

Plugin builds for 7be8965 are ready 🛎️!

Copy link
Collaborator

@dhaval-parekh dhaval-parekh left a comment

Choose a reason for hiding this comment

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

Changes in PR looks good to me.

@dhaval-parekh
Copy link
Collaborator

QA Passed.

After installing and suppressing the "Auto Add Script to Footer" plugin, No validation errors occur when validating the page.

@westonruter westonruter merged commit a5f6909 into develop Jan 26, 2022
@westonruter westonruter deleted the fix/plugin-suppression-at-wp-action branch January 26, 2022 18:47
@westonruter westonruter added the Changelogged Whether the issue/PR has been added to release notes. label Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelogged Whether the issue/PR has been added to release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin suppression can fail to work during validate requests
2 participants