Add support for GitHub release installation#421
Merged
danielbachhuber merged 7 commits intowp-cli:mainfrom Apr 27, 2024
Merged
Conversation
swissspidy
reviewed
Apr 26, 2024
src/WP_CLI/CommandWithUpgrade.php
Outdated
Comment on lines
+829
to
+831
| if ( wp_remote_retrieve_response_code( $response ) === \WP_Http::FORBIDDEN ) { | ||
| return new \WP_Error( | ||
| \WP_Http::FORBIDDEN, |
Member
There was a problem hiding this comment.
Looks like WP_Http::FORBIDDEN doesn't exist yet on WordPress 3.7, see https://github.com/wp-cli/extension-command/actions/runs/8851555744/job/24308388075?pr=421#step:11:67
I suppose we can just hardcode 403 here, maybe adding an explanatory comment
baizmandesign
pushed a commit
to baizmandesign/extension-command
that referenced
this pull request
May 7, 2024
--------- Co-authored-by: Bogdan Ungureanu <bogdanungureanu21@gmail.com> Co-authored-by: Daniel Bachhuber <daniel.bachhuber@automattic.com>
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.
Related to #91 and resuming #386.