Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#59403 new defect (bug)

Inconsistent version numbering

Reported by: kkmuffme's profile kkmuffme Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Upgrade/Install Keywords:
Focuses: Cc:

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.

Change History (1)

#1 @afragen
12 months ago

  • Component changed from General to Upgrade/Install
  • Severity changed from major to minor

Related: #59448

Note: See TracTickets for help on using tickets.