Skip to content

Add logic for "compatibility" for point releases#3618

Open
andrewlimaza wants to merge 1 commit intostrangerstudios:devfrom
andrewlimaza:tested-up-to-version
Open

Add logic for "compatibility" for point releases#3618
andrewlimaza wants to merge 1 commit intostrangerstudios:devfrom
andrewlimaza:tested-up-to-version

Conversation

@andrewlimaza
Copy link
Contributor

  • ENHANCEMENT: Improved plugin meta tested up to logic to support point releases based on minor version.

* ENHANCEMENT: Improved plugin meta tested up to logic to support point releases based on minor version.
@andrewlimaza
Copy link
Contributor Author

Note: This does require an update to our license server to store this data for us.

@dparker1005 dparker1005 requested a review from Copilot March 19, 2026 16:30
@dparker1005 dparker1005 added this to the 3.7 milestone Mar 19, 2026
@dparker1005 dparker1005 changed the base branch from dev to v3.7 March 19, 2026 16:30
@dparker1005 dparker1005 removed this from the 3.7 milestone Mar 19, 2026
@dparker1005 dparker1005 changed the base branch from v3.7 to dev March 19, 2026 16:31
@dparker1005
Copy link
Member

Pointing back at dev as a license server update is needed. I missed that earlier.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enhances the add-on plugin API metadata generation so that “Tested up to” can automatically reflect WordPress point releases (patch versions) based on the site’s WordPress version.

Changes:

  • Adds logic in the plugin API object builder to adjust $api->tested to the current WordPress patch version under certain conditions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1188 to +1191
$parts = explode( '.', $wp_version, 3 );
$trimmed_wp_version = $parts[0] . '.' . $parts[1];
if ( version_compare( $api->tested, $trimmed_wp_version, '>=' ) ) {
$api->tested = $wp_version;
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.

3 participants