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

WordPress Trac noreply at wordpress.org
Tue Dec 19 15:59:08 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):

 Replying to [comment:12 kkmuffme]:
 > Instead of generating a useless error, this function should gracefully
 handle this and treat 6.3.0 and 6.3 as the same thing.

 My PR does treat 6.3.0 and 6.3 as equivalent and so the function will
 return true.

 The error isn’t useless as it does point out that the user/dev is doing it
 wrong by using a version number that doesn’t technically exist.

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


More information about the wp-trac mailing list