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

WordPress Trac noreply at wordpress.org
Wed Aug 28 17:44:15 UTC 2024


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

 * keywords:  has-patch dev-feedback => has-patch dev-feedback close


Comment:

 I tend to agree that a `$force` parameter feels a bit out of place. Plus,
 if the default value is `false`, then anything expecting an accurate
 version to be returned may break when 6.7 is released.

 I think this is just one of those improvements that changes old, long
 standing code that's just not worth the risk. I'm adding a `close`
 suggestion based on the feedback from @TobiasBg and I.

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


More information about the wp-trac mailing list