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

Add MU plugin that customizes "Background updates" site health test #647

Closed

Conversation

mcaskill
Copy link
Contributor

This feature is based on #540 and partially resolves #522 but instead of removing the "Background updates" test, this plugin alters its status, label, and description, to explain why its disabled.

Cropped screen capture of the WordPress Site Health Status page showing the customized Background updates test result

@mcaskill mcaskill changed the title Add MU plugin that customizes Site Health test Add MU plugin that customizes "Background updates" site health test Aug 26, 2022
@mcaskill mcaskill force-pushed the feature/bedrock-site-health-tests branch from 796e076 to ba4758b Compare September 12, 2022 14:09
@mcaskill mcaskill force-pushed the feature/bedrock-site-health-tests branch from ba4758b to 13bf8e7 Compare October 17, 2022 22:56
Overrides the result of the finished "Background updates" test to avoid conflict with the way Bedrock is structured (where WordPress is managed by Composer/VCS).
Replaced hooks closures with functions to make it easier to remove, replace, reuse, or extend if needed.

Added type-hinting for static analysis tools (tested with PHPStan and Psalm).

Improved description of test result to support potential edge case where the result data has no description during override process.
@mcaskill mcaskill force-pushed the feature/bedrock-site-health-tests branch from 13bf8e7 to 77965b1 Compare December 7, 2022 22:15
@retlehs
Copy link
Sponsor Member

retlehs commented Feb 17, 2023

If you want to make a Composer package out of this I'd be happy to add it to our docs, but this isn't something we will be adding in Bedrock at this time

@retlehs retlehs closed this Feb 17, 2023
@axi
Copy link

axi commented Jun 12, 2024

Hi @mcaskill, I saw you thumbed up the idea of making a package from your PR, did you already ?
I could use it if yes

@mcaskill
Copy link
Contributor Author

Hi @axi, I have not had the chance to make a package out of this; completely forgot about this pull request. I'll consider it.

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.

WordPress Site Health reports 'Should be improved' on default Bedrock install
3 participants