[wp-trac] [WordPress Trac] #59448: is_wp_version_compatible works unreliably
WordPress Trac
noreply at wordpress.org
Tue Dec 19 10:59: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: good-first-bug 2nd-opinion has- | Focuses:
patch has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by kkmuffme):
str_ends_with is PHP 8, but WP supports PHP 7, this won't work.
Instead of generating a useless error, this function should gracefully
handle this and treat 6.3.0 and 6.3 as the same thing.
This will also make it easier if/once WP moves to this notation in the
first place.
(there's an open meta ticket for that since a while but it wasn't high
priority yet)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59448#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list