Introduce --version=beta argument for updating to latest WordPress beta/RC#315
Closed
Introduce --version=beta argument for updating to latest WordPress beta/RC#315
Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Introduce --version=beta argument for WordPress update
Introduce --version=beta argument for updating to latest WordPress beta/RC
Mar 11, 2026
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Member
|
a version-check API request that includes channel=beta|rc only responds with a beta or RC if we're currently within the beta or RC window., so this is kind blocked still |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wp core update --version=betaandwp core download --version=betahad no proper implementation — passing--version=betaeither showed a misleading "older than current version" message or attempted to fetch a non-existentwordpress-beta.zip.Queries the WordPress.org API with
channel=betato retrieve the current beta or RC offer, then uses the real versioned package URLs.Changes
get_beta_download_offer()— new private helper that callshttps://api.wordpress.org/core/version-check/1.7/?channel=beta&locale=...and returns the offer array (version, download URL, packages)update()— adds'beta'to the version-dispatch condition; when matched, fetches the API offer and builds the update object with actual version/locale/package data (usesno_contentpackage when available)download()— when--version=beta, resolves to the real versioned URL from the API (e.g.wordpress-7.0-beta4.tar.gz); cached normally since the URL is versioned, unlike nightly--versionon both commands to mentionbetaExample
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.