Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Networking broken when extra PHP extensions are enabled
The recent [removal of custom WordPress patches](#1004) broke the networking feature when the extra PHP extensions are enabled. It removed the default networking tranports via the http_api_transports filter, but it did not account for WordPress trying to use the Fetch and Fsockopen transports anyway whenever their `::test()` method returns true – which it does when the OpenSSL extension is available. This PR uses the reflections API to force-replace the Requests::$transports array with one containing exclusively the Fetch transport. Open Playground, enable PHP extensions and networking, go to WP Admin > Plugins > Add, confirm the list of plugins is visible CC @bgrgicak @annezazu
- Loading branch information