WordPress MU Plugin to fix broken requests to REST API and cron jobs in Local by Flywheel.
When using SSL in a WordPress development environment provided by Local by Flywheel (previously Pressmatic), requests to http
endpoints from within WordPress fail with cURL Error 7 because of how the site is proxied. This plugin fixes this by forcing http
on secured sites.
See https://local.getflywheel.com/community/t/wp-cron-not-working-on-secured-sites/147/2 for discussion and original code for the cron_request
filter.
- Clone the repo locally and copy or symlink the file into your site's
wp-content\mu-plugins
directory. - You can also pull the file in directly with
curl
orwget
, or just copy and paste into your own plugin or theme file.
cd wp-content/mu-plugins
wget https://git.io/vH6Nn
cd wp-content/mu-plugins
curl -o fix-local-flywheel-https.php -L -C - https://git.io/vH6Nn
Thanks to Local user Xaver for the initial cron_request
filter code.
This plugin is licensed GPLv2+. Original code from Local forums is licensed CC BY-NC-SA 3.0 and has been modified for use in this plugin. See Local Community TOS for details.