[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 22:24:14 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 peterwilsoncc):
If there is a need for this, I'd investigate adding a parameter to
`wp_get_wp_version()` to allow it to be called to get the `major` (x.x),
`minor` (x.x.x) and `full` (7.0-beta3-61849) versions. A new function
seems to be overkill.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64830#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list