-
Notifications
You must be signed in to change notification settings - Fork 389
[personal-wp] Add Health Check recovery #3157
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
Conversation
2899417 to
c278f6e
Compare
fcb299c to
5dfd325
Compare
5dfd325 to
de5b08e
Compare
90b5665 to
eeb8f50
Compare
1baf5fd to
9676f6f
Compare
6192b58 to
30ade19
Compare
2a32bba to
fd63f4c
Compare
30ade19 to
6ee19d9
Compare
6ee19d9 to
c9b2a78
Compare
c9b2a78 to
473eae4
Compare
| slug: 'health-check', | ||
| }, | ||
| options: { | ||
| activate: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This makes it reasonably safe to run even when WordPress is in a fatal error state. I don't think we ever include wp-load.php just for the installation.
| toPath: '/wordpress/wp-content/mu-plugins/health-check-troubleshooting-mode.php', | ||
| }, | ||
| { | ||
| // Add an MU-plugin that loads before health-check (alphabetically: "0" < "h") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smart!
Based on #3155.
Motivation for the change, related issues
When a plugin breaks a Personal Playground WordPress site, users need a way to recover. This adds a Health Check recovery option that enables troubleshooting mode, disabling all plugins so users can identify the problematic one.
Screenshots
Implementation details
health-check-recovery.ts: Blueprint that installs Health Check plugin and an MU-plugin to bypass hash verification, enabling troubleshooting modegetBlueprintUrl(): Encodes blueprints as base64 data URLs for easy sharingPersistentPlaygroundOverlaywith expandable "Install Health Check & Troubleshoot" buttonTesting Instructions (or ideally a Blueprint)
npm run devand visit http://127.0.0.1:5401