[wp-trac] [WordPress Trac] #62151: Allow Ignoring Patch Version in version_compare() for PHP Compatibility
WordPress Trac
noreply at wordpress.org
Tue Oct 1 20:30:43 UTC 2024
#62151: Allow Ignoring Patch Version in version_compare() for PHP Compatibility
---------------------------+------------------------------
Reporter: mostafa.s1990 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by mostafa.s1990):
Thanks for the feedback, While `is_wp_version_compatible` helps in some
cases, this proposal addresses a specific issue for self-hosted plugin
update systems (e.g., [https://rudrastyh.com/wordpress/self-hosted-plugin-
update.html example]).
Currently, plugin developers need to update the "tested" version on the
server with every minor WordPress release (e.g., 6.6.1, 6.6.2), even if
the plugin remains compatible across all minor versions. We’ve already
handled this locally in our plugin [https://github.com/wp-statistics/wp-
statistics/blob/release-v14.11/src/Service/Admin/LicenseManagement/Plugin/PluginUpdater.php#L132-L135
here] and [https://github.com/wp-statistics/wp-
statistics/blob/release-v14.11/src/Service/Admin/LicenseManagement/Plugin/PluginUpdater.php#L222-L242
here], but it would be more efficient if WordPress core provided native
support for this functionality.
This would simplify the process for self-hosted plugin developers and
reduce the need for constant server-side metadata updates for every
WordPress patch release.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62151#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list