[wp-trac] [WordPress Trac] #64830: Introduce a helper function to extract the major.minor "branch" version

WordPress Trac noreply at wordpress.org
Mon Mar 9 18:07:41 UTC 2026


#64830: Introduce a helper function to extract the major.minor "branch" version
-------------------------+------------------------------
 Reporter:  apermo       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by apermo):

 Replying to [comment:4 jorbin]:
 > Please note that `x.y` is the major version, not major.minor. Minor is
 the third number. See: https://make.wordpress.org/core/handbook/about
 /release-cycle/version-numbering/

 That pretty much sorts out what @westonruter said. So for any 7.0 Version
 including 7.0.0 the result has to be 7.0 and not 7 as it currently is in
 the admin header.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64830#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list