[wp-trac] [WordPress Trac] #51822: Ensure update-core.php knows you're using a development version
WordPress Trac
noreply at wordpress.org
Fri Nov 20 11:17:28 UTC 2020
#51822: Ensure update-core.php knows you're using a development version
-------------------------------------------------+-------------------------
Reporter: afragen | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.6
Component: Upgrade/Install | Version: 5.6
Severity: normal | Resolution:
Keywords: has-patch has-screenshots dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by azaozz):
Looking at 51822.2.diff, It makes sense to check `$wp_version` to "see" if
it is production or dev. Perhaps the regex would be faster/better as
{{{
$development = preg_match( '/(?:alpha|beta|RC)\d+/', $wp_version );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51822#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list