[wp-trac] [WordPress Trac] #20416: Install plugins version checking not correct
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 11 11:55:06 UTC 2012
#20416: Install plugins version checking not correct
----------------------------+------------------------------
Reporter: Workshopshed | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.4
Severity: minor | Resolution:
Keywords: |
----------------------------+------------------------------
Comment (by dd32):
The behavior of the install screen did change at one point to match the
version comparisons used elsewhere, previously I believe this used a
decimal comparison ( 1.7 > 1.63?) which broke on major.minor.patch (3.2.1)
style version numbers.
Since we use version_compare() everywhere else in WordPress for the update
notifications, it makes sense to keep that there. As a result, if you're
using 1.63, you'll never get a update notification to 1.7, since that's
1.07 vs 1.63 when it comes to version comparisons.
So in the end, I think it's something that has to be left up to plugin
authors to actually specify their versions right, although, some
documentation to mention this gotcha might be advisable if it's not
already around somewhere...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20416#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list