https://github.com/morganestes/fix-local-flywheel-https
WordPress MU Plugin to fix broken requests to REST API and cron jobs in Local by Flywheel.
https://github.com/morganestes/fix-local-flywheel-https
flywheel wordpress wordpress-development wordpress-plugin
Last synced: 11 months ago
JSON representation
WordPress MU Plugin to fix broken requests to REST API and cron jobs in Local by Flywheel.
- Host: GitHub
- URL: https://github.com/morganestes/fix-local-flywheel-https
- Owner: morganestes
- License: gpl-3.0
- Created: 2017-06-07T19:25:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-14T16:58:20.000Z (about 9 years ago)
- Last Synced: 2025-06-16T07:04:50.128Z (about 1 year ago)
- Topics: flywheel, wordpress, wordpress-development, wordpress-plugin
- Language: PHP
- Size: 20.5 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fix cURL errors in Local by Flywheel
WordPress MU Plugin to fix broken requests to REST API and cron jobs in Local by Flywheel.
## Background
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.
## Installation
1. Clone the repo locally and copy or symlink the file into your site's `wp-content\mu-plugins` directory.
2. You can also pull the file in directly with `curl` or `wget`, or just copy and paste into your own plugin or theme file.
### wget
cd wp-content/mu-plugins
wget https://git.io/vH6Nn
### cURL
cd wp-content/mu-plugins
curl -o fix-local-flywheel-https.php -L -C - https://git.io/vH6Nn
## Credits
Thanks to Local user [Xaver](https://local.getflywheel.com/community/users/xaver/summary) for the initial `cron_request` filter code.
## License
This plugin is licensed [GPLv2+](LICENSE). Original code from Local forums is licensed [CC BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US) and has been modified for use in this plugin. See [Local Community TOS](https://local.getflywheel.com/community#3) for details.