[wp-trac] [WordPress Trac] #61782: Memoize wp_get_wp_version

WordPress Trac noreply at wordpress.org
Mon Oct 7 21:12:06 UTC 2024


#61782: Memoize wp_get_wp_version
------------------------------------------+----------------------------
 Reporter:  Cybr                          |       Owner:  peterwilsoncc
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  6.7
Component:  General                       |     Version:  trunk
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch dev-feedback close  |     Focuses:
------------------------------------------+----------------------------
Changes (by peterwilsoncc):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59192" 59192]:
 {{{
 #!CommitTicketReference repository="" revision="59192"
 General: Memoize the return value in `wp_get_wp_version()`.

 Cache the unmodified `$wp_version` value as a static. This retains the
 current behaviour during the upgrade process `$wp_version` referencing the
 version of WordPress being upgraded from.

 Follow up to [58848].

 Props Cybr, debarghyabanerjee, mukesh27, costdev, SergeyBiryukov,
 TobiasBg, desrosj, azaozz.
 Fixes #61782.
 }}}

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


More information about the wp-trac mailing list