[wp-trac] [WordPress Trac] #61627: Introduce helper function get the unmodified value of `$wp_version`.
WordPress Trac
noreply at wordpress.org
Thu Oct 3 00:24:11 UTC 2024
#61627: Introduce helper function get the unmodified value of `$wp_version`.
--------------------------------------+---------------------
Reporter: peterwilsoncc | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by peterwilsoncc):
In [changeset:"59159" 59159]:
{{{
#!CommitTicketReference repository="" revision="59159"
General: Expand use of `wp_get_wp_version()`.
Expands the use of `wp_get_wp_version()` to get an unmodified value of the
current WordPress version in various locations in which it would be
unhelpful if a plugin has modified the global `$wp_version`.
This includes:
* Theme and plugin compatibility tests
* During the upgrade process of WP Core
* Debug and site health data reports of the current version
* Version number display in the dashboard
* Block theme export and caching utilities
* The `WPDB` class
Props peterwilsoncc, hellofromtonya.
See #61627.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61627#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list