Opened 3 years ago
Last modified 3 years ago
#59403 new defect (bug)
Inconsistent version numbering
| Reported by: | kkmuffme | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Upgrade/Install | Version: | |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
Description
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #59448