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

WordPress Trac noreply at wordpress.org
Fri Jan 26 04:00:45 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 afragen):

 Replying to [comment:20 peterwilsoncc]:
 > @afragen Raising it here because I don't think it helps on the PR.
 >
 > I'm wondering if WordPress should gracefully handle `x.x.0` without
 logging a notice as the format is semi-official. While WordPress publicly
 refers to `x.x` as the version number, the
 [https://make.wordpress.org/core/2014/01/15/git-mirrors-for-wordpress/
 official git mirrors] tag with `x.x.0` to avoid conflicts with branch
 names.
 >

 Thanks @peterwilsoncc. Let me know if the decision is to remove the
 `wp_trigger_error()` notice as this would greatly simplify the code.

 I’ll update accordingly.

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


More information about the wp-trac mailing list