[wp-trac] [WordPress Trac] #61627: Introduce helper function get the unmodified value of `$wp_version`.

WordPress Trac noreply at wordpress.org
Sat Jul 27 00:11:26 UTC 2024


#61627: Introduce helper function get the unmodified value of `$wp_version`.
---------------------------------------------+---------------------
 Reporter:  peterwilsoncc                    |       Owner:  (none)
     Type:  enhancement                      |      Status:  new
 Priority:  normal                           |   Milestone:  6.7
Component:  General                          |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+---------------------
Changes (by peterwilsoncc):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests commit
 * milestone:  Awaiting Review => 6.7


Comment:

 @debarghyabanerjee's [https://github.com/WordPress/wordpress-
 develop/pull/7013 pull request] looks good for commit.

 The pull request replaces all the instances of requiring version.php to
 get an unmodified value except for in script-loader.php as the function
 may not be available.

 As there are other location in core in which an unmodified version of WP
 could prove helpful, I'll keep the ticket open after commit to allow for
 further work on this.

 @afragen @costdev This would be helpful in `is_wp_version_compatible()`
 but it would break the tests introduced in #59448 so it's unchanged for
 now.

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


More information about the wp-trac mailing list