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

WordPress Trac noreply at wordpress.org
Mon Aug 5 08:44:47 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  |     Focuses:
------------------------------------+-----------------------------

Comment (by TobiasBg):

 I don't think that a `$force` parameter makes much sense. As a developer,
 when calling this function, I would always want the correct version, so I
 would be setting the `$force` parameter. But if everybody uses that
 parameter anyways, there's not much benefit to even offering it. The
 `$force` outcome should then be the default (as it is now after the
 revert) and would save the overhead of additional variable checks.

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


More information about the wp-trac mailing list