[wp-trac] [WordPress Trac] #59403: Inconsistent version numbering

WordPress Trac noreply at wordpress.org
Wed Sep 20 07:19:32 UTC 2023


#59403: Inconsistent version numbering
--------------------------+-----------------------------
 Reporter:  kkmuffme      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  major         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 WP releases versions with a mix of Major/Minor and Major/Minor/Release,
 which causes issues when using version_compare with a consistent
 annotation.

 e.g.
 WP 6.3
 WP 6.3.1

 If you use `version_compare( $wp_version, '6.3.0', '<' )` it will be
 unexpectedly true-ish for WP 6.3, since 6.3.0 is newer than 6.3 in PHP
 versioning.

 Versioning should be made consistent with Major/Minor/Release not only for
 WP core from the next release, but ideally also a requirement for all
 submitted plugins, to avoid unexpected behavior due to inconsistent
 versioning.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59403>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list