Skip to content

Conversation

@AKSHAT2802
Copy link

@AKSHAT2802 AKSHAT2802 commented Dec 1, 2025

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

  • If the installed plugin has not been tested up to the current WordPress version, a dismissible inline warning is shown below the plugin row.
  • The notice includes the current WordPress version and the last tested version returned from the API.
  • If the user has capability install_plugins, a "View details" link is appended to allow quick access to the plugin modal.

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

  1. show_plugin_compatibility_warning
    Allows controlling whether the warning should appear.

apply_filters( 'show_plugin_compatibility_warning', $show_compat_warning, $plugin_file, $plugin_data, $tested_wp, $wp_version );

  1. plugin_compatibility_warning_message
    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).

@AKSHAT2802 AKSHAT2802 changed the title Feature: Enhance compatibility checks for plugins with tested upto WordP… Feature: Enhance compatibility checks for plugins with tested upto WordPress version Dec 1, 2025
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Test using WordPress Playground

The 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

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@AKSHAT2802 AKSHAT2802 changed the title Feature: Enhance compatibility checks for plugins with tested upto WordPress version Add admin notice warning when installed plugins are not tested with the current WordPress version Dec 2, 2025
@AKSHAT2802 AKSHAT2802 marked this pull request as ready for review December 2, 2025 20:19
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

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 props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props akshat2802, westonruter.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

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.

2 participants