[wp-trac] [WordPress Trac] #61781: Use unadulterated WP version in `is_wp_version_compatible()`

WordPress Trac noreply at wordpress.org
Mon Jul 29 01:25:34 UTC 2024


#61781: Use unadulterated WP version in `is_wp_version_compatible()`
--------------------------------------+------------------------------
 Reporter:  peterwilsoncc             |       Owner:  costdev
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by Cybr):

 I recommend using `get_bloginfo( 'version', 'display' )` for anything that
 prints the "global", and rely on `wp_get_wp_version()` otherwise. This
 way, we never have to call the "global" directly.

 In addition to addressing `is_wp_version_compatible()`,
 `list_core_update()` might also need to change where it gets its
 `$wp_version`.

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


More information about the wp-trac mailing list