[wp-trac] [WordPress Trac] #26971: Plugin version string "0.9.8+git" shouldn't compare to less than "0.9.8" and trigger update notifications
WordPress Trac
noreply at wordpress.org
Fri Jan 31 09:41:53 UTC 2014
#26971: Plugin version string "0.9.8+git" shouldn't compare to less than "0.9.8"
and trigger update notifications
-------------------------+------------------------------
Reporter: lkraav | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.8
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by nacin):
Added a 3.8.1 version, thanks. Though this goes back forever.
I don't think we should change http://php.net/version_compare behavior. In
fact, we don't need to: You can use a fairly esoteric feature of
version_compare(), "pl" or "p", which stands for "patch". On how you'd use
it: http://stackoverflow.com/a/18492111.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26971#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list