[wp-trac] [WordPress Trac] #61782: Memoize wp_get_wp_version
WordPress Trac
noreply at wordpress.org
Mon Jul 29 15:01:01 UTC 2024
#61782: Memoize wp_get_wp_version
--------------------------+-----------------------------
Reporter: Cybr | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7
Component: General | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
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/61782#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list