[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 11:25:08 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 suhan2411):
A pull request has been opened for review:
https://github.com/WordPress/wordpress-develop/pull/11211
This introduces the `wp_get_branch_version()` helper to extract the
major.minor branch version safely and replaces existing fragile approaches
(float cast, substr, etc.) across core.
Feedback welcome.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64830#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list