-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Networking: Swap Requests transports using the http_api_transports in…
…stead of patching the Requests library (#1004) Before this PR, we were patching the default WordPress transports to always return `false` from their `test()` method which, otherwise, could return a false positive. It was a hack. It solved the problem at hand, but added complexity and maintenance burden. This PR removes the patching and instead swaps the Requests transports from within the Playground my-plugin using the `http_api_transports` WordPress filter. ## Testing instructions Confirm the CI checks pass cc @bgrgicak
- Loading branch information
Showing
3 changed files
with
33 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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