[wp-meta] [Making WordPress.org] #1034: api.wordpress.org/plugins/update-check/1.1/ enhancement

Making WordPress.org noreply at wordpress.org
Wed May 20 00:44:39 UTC 2015


#1034: api.wordpress.org/plugins/update-check/1.1/ enhancement
----------------------------+-------------------------------
  Reporter:  brettshumaker  |      Owner:
      Type:  enhancement    |     Status:  new
  Priority:  normal         |  Component:  api.wordpress.org
Resolution:                 |   Keywords:
----------------------------+-------------------------------

Comment (by dd32):

 I don't think we should change anything here myself. Versions numbers are
 not supposed to follow human decimal rules, so `1.04` should be read as
 `1.4`.
 The best way to think about it, is to drop the decimal notation you're
 accustomed to and read it as `major: 1, minor: 04`, `major: 1, minor: 1` -
 so in that case `04 > 1`.

 `version_compare()` is designed to handle PHP-formatted version strings,
 which are the same strings WordPress is built to expect.  There's a bit of
 a blurb on http://php.net/version_compare on how it works.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1034#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list