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

WordPress Trac noreply at wordpress.org
Sun Jan 28 21:31:20 UTC 2024


#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 peterwilsoncc):

 @afragen @jorbin It occurred to me over the weekend that Core `@since`
 tags use the format `x.x.0`
 ([https://core.trac.wordpress.org/browser/tags/6.2.3/src/wp-
 includes/functions.php?marks=8425#L8425 see example]) so the most likely
 cause of developers using the incorrect format is via copy-paste from the
 functions they are checking.

 Let's fix it silently as copying Core's format is reasonable.

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


More information about the wp-trac mailing list