[wp-trac] [WordPress Trac] #61627: Introduce helper function get the unmodified value of `$wp_version`.
WordPress Trac
noreply at wordpress.org
Mon Jul 29 15:01:01 UTC 2024
#61627: Introduce helper function get the unmodified value of `$wp_version`.
--------------------------------------+---------------------
Reporter: peterwilsoncc | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"58827" 58827]:
{{{
#!CommitTicketReference repository="" revision="58827"
General: Memoize the return value in `wp_get_wp_version()`.
This aims to optimize performance by saving the return value to a static
variable, so that the `version.php` file is not unnecessarily required on
each function call.
Follow-up to [58813].
Props Cybr, debarghyabanerjee, mukesh27.
Fixes #61782. See #61627.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61627#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list