-
Notifications
You must be signed in to change notification settings - Fork 277
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
[Blueprints] Prevent plugin activation error if plugin redirects during activation or produces an output #2066
Merged
adamziel
merged 29 commits into
trunk
from
fix/1979-plugin-activation-fails-on-redirect
Dec 19, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
6fed4da
Prevent plugin activation error if plugin redirects during activation
bgrgicak 2ca6335
Merge branch 'trunk' into fix/1979-plugin-activation-fails-on-redirect
bgrgicak 2f45f25
[Blueprints] Prevent WSOD when autologin is enabled and a plugin logs…
adamziel 3d69181
Merge branch 'prevent-autologin-white-screen-of-death' into fix/1979-…
bgrgicak d1ee3c9
Use options to validate if a plugin is active
bgrgicak 1747574
Explain why we had to split into two runs
bgrgicak 75cd7b4
Merge branch 'trunk' into fix/1979-plugin-activation-fails-on-redirect
bgrgicak a46d412
Merge branch 'trunk' into fix/1979-plugin-activation-fails-on-redirect
bgrgicak 7204067
Revert "[Blueprints] Prevent WSOD when autologin is enabled and a plu…
bgrgicak 7aa4329
Always return activation errors
bgrgicak aaf683d
Merge branch 'trunk' into fix/1979-plugin-activation-fails-on-redirect
bgrgicak d255141
Merge branch 'trunk' into fix/1979-plugin-activation-fails-on-redirect
bgrgicak d351a63
Update packages/playground/blueprints/src/lib/steps/activate-plugin.ts
bgrgicak cf2a580
Remove plugin dir path only from the beginning of a plugin path
bgrgicak a3eccc6
Return error if plugin wasn't found
bgrgicak 8627934
Update error message
bgrgicak fd4cb60
Fix linter errror
bgrgicak 7414381
Move activate plugin error logging before is active check
bgrgicak 2dd659e
Add test for double plugin activation
bgrgicak 9b148b2
Ensure all supported plugin paths can be activated
bgrgicak 622099d
Clear up is active check
bgrgicak d7e7827
Add trailing slash activation test
bgrgicak 56cd875
Apply suggestions from code review
bgrgicak 2efc8e2
Check if the plugin exists in the filesystem
bgrgicak dde935a
Check if the current relative plugin path is a directory before addin…
bgrgicak c0dd231
Use resolves.not.toThrow in tests
bgrgicak 0c09fc0
Explain why a WP_Error during plugin activation doesn't mean the plug…
bgrgicak e27c6fb
Remove .php check
bgrgicak bb24b49
Use rtrim and only is_dir
bgrgicak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Wait, this seems to contradict the other comment:
So is output an activation error, or is it okay?
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.
The comment is just incomplete. I explained now better, why a WP_Error during plugin activation doesn't mean the plugin isn't active. 0c09fc0 There is also a section about this in the PR description with a screenshot.