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

WordPress Trac noreply at wordpress.org
Wed Nov 15 17:41:25 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:  needs-patch good-first-bug 2nd-      |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------

Comment (by afragen):

 Just a thought but what about using `str_ends_with()` and then `rtrim()` ?

 Result would then need to ensure proper x.0 version for replacement.

 Just thinking it might be more clear what we’re trying to do than with
 regex.

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


More information about the wp-trac mailing list