-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add admin notice warning when installed plugins are not tested with the current WordPress version #10574
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
base: trunk
Are you sure you want to change the base?
Add admin notice warning when installed plugins are not tested with the current WordPress version #10574
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Co-authored-by: Weston Ruter <[email protected]>
Co-authored-by: Weston Ruter <[email protected]>
Co-authored-by: Weston Ruter <[email protected]>
Co-authored-by: Weston Ruter <[email protected]>
Co-authored-by: Weston Ruter <[email protected]>
Trac ticket: https://core.trac.wordpress.org/ticket/40804
This PR introduces a new inline admin warning in the Plugins > Installed Plugins screen when a plugin’s "Tested up to" version (retrieved via plugins_api()) is lower than the current installed WordPress version.
The goal is to improve plugin maintenance visibility and help site owners quickly identify plugins that may no longer be actively tested or maintained without requiring them to open the plugin details modal.
This enhancement aligns with similar UX patterns used in the Plugin Directory, where outdated testing information already triggers caution labels.
Behavior
Example message:
This plugin has not been tested with your current version of WordPress (6.8). It may still work, but consider checking for an update or contacting the plugin author. Last tested with WordPress 6.6.New Filters Introduced
Allows controlling whether the warning should appear.
apply_filters( 'show_plugin_compatibility_warning', $show_compat_warning, $plugin_file, $plugin_data, $tested_wp, $wp_version );Allows customizing the text of the warning.
apply_filters( 'plugin_compatibility_warning_message', $compat_message, $plugin_file, $plugin_data, $tested_wp, $wp_version );Testing Instructions
Install any plugin with a "Tested up to" value lower than the current WordPress install.
Visit Plugins → Installed Plugins.
Confirm:
-- A warning row appears under the plugin.
--The text correctly inserts both version values.
-- The link opens the plugin details thickbox modal (if capabilities allow).