[wp-trac] [WordPress Trac] #59448: is_wp_version_compatible works unreliably

WordPress Trac noreply at wordpress.org
Tue Dec 19 15:38:33 UTC 2023


#59448: is_wp_version_compatible works unreliably
-------------------------------------------------+-------------------------
 Reporter:  kkmuffme                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Upgrade/Install                      |     Version:  5.2
 Severity:  minor                                |  Resolution:
 Keywords:  good-first-bug 2nd-opinion has-      |     Focuses:
  patch has-unit-tests                           |
-------------------------------------------------+-------------------------

Comment (by afragen):

 As of WordPress 5.9 there is a shim included for `str_ends_with()`,
 `str_starts_with()`, and `str_contains()`. https://github.com/WordPress
 /wordpress-develop/blob/trunk/src/wp-includes/compat.php

 It will absolutely work, assuming this fix isn't back ported beyond
 WordPresss 5.9. As it's not a security fix I doubt it will be.

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


More information about the wp-trac mailing list