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

WordPress Trac noreply at wordpress.org
Mon Jan 29 21:01:46 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):

 Replying to [comment:24 jorbin]:
 > Fixing this silently is essentially saying that there are two version
 numbers for any given version, the notice for developers should be
 included.

 @jorbin I think you've identified the problem, in practice there are two
 version numbers used by the project for major releases.

 * x.x.0 formatted
    - `@since` tags per the [https://developer.wordpress.org/coding-
 standards/inline-documentation-standards/php/#docblock-formatting
 documentation standards] - 14.5k instances
    - the above is reflected in the
 [https://developer.wordpress.org/reference/ developer code reference]
    - tags on the wordpress.org hosted git mirrors, both built and
 wordpress-develop
    - tags on the GitHub mirror of [https://github.com/WordPress/wordpress-
 develop/ WordPress\wordpress-develop]
 * x.x formatted
   - tags on the wordpress.org hosted SVN repos, both built and wordpress-
 develop
   - tags on the GitHub mirror of [https://github.com/WordPress/WordPress/
 WordPress\WordPress (built version)]
   - publicity material

 I think the x.x.0 formatted version numbers are used in the places most
 developers interact with WordPress. In practice, it's pretty much only
 committers that use the SVN repos and only when it comes time to commit.

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


More information about the wp-trac mailing list