-
Notifications
You must be signed in to change notification settings - Fork 17
Add WPGraphQL version compatibility headers and checks #377
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
|
|
We should also remove and the corresponding patch. |
|
Looks good to me 🚀 Might be worth adding a changeset too for the RP. |
Description
This PR introduces custom plugin headers for declaring the minimum required and maximum tested versions of WPGraphQL, and wires them into the plugin's initialization logic. This provides better validation and safer bootstrapping when used alongside WPGraphQL.
Added the following custom headers to the main plugin file:
Requires WPGraphQLWPGraphQL tested up toHow to Test
✅ Ensure WPGraphQL is installed and activated.
✅ Change the version of WPGraphQL (if needed) to simulate:
A version lower than Requires WPGraphQL
A version higher than WPGraphQL tested up to
✅ Activate the plugin:
If the WPGraphQL version is below the required, the plugin should not continue loading and a WP admin notice should appear.
If within the compatible range, the plugin should load normally.
✅ Check admin notice behavior:
Go to
WP Admin > Pluginsand verify the message when versions are incompatible.Fixes #358