Javascript inserted from Plugin pointing to wrong location
This has happened time and time again on multiple sites. When it happens, it forces me to start with a fresh install of WordPress to get around it.
The most recent example is on the WP Forms Lite plugin: https://wordpress.org/plugins/wpforms-lite/
On the plugin, I enable recaptcha, and then instead of pointing to Google for the javascript file: https://www.google.com/recaptcha/api.js
It points to my local site: /recaptcha/api.js
This has happened to me on multiple WordPress installs, I feel like on every plugin that requires an external javascript file. For example, on a WooCommerce plugin site, I enabled Stripe payments, and instead of referencing: https://checkout.stripe.com/checkout.js
The site will reference: /checkout.js
WordPress will randomly remove all javascript URL references to external sites.
Is there a manual way to fix this? If I deactivate all plugins, delete them, then install the plugin, activate, it does not fix the issue. I have to completely delete WordPress on my server and reinstall to fix.
Topic references plugins Wordpress javascript
Category Web