Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Fix js error, caused by replace single quotes #224

Merged
merged 1 commit into from Dec 7, 2019
Merged

Fix js error, caused by replace single quotes #224

merged 1 commit into from Dec 7, 2019

Conversation

dsturm
Copy link
Sponsor Contributor

@dsturm dsturm commented Mar 21, 2019

In some cases, script tags might contain js code document.write() with single quotes - like wp_get_script_polyfill. Replacing all single quotes lead to an SyntaxError. So add slashes in document.write arguments fixes this.

In some cases, script tags might contain js code document.write() with single quotes - like [wp_get_script_polyfill](https://developer.wordpress.org/reference/functions/wp_get_script_polyfill/). Replacing all single quotes lead to an SyntaxError. So add slashes in document.write arguments fixes this.
@retlehs retlehs merged commit 3a16357 into roots:master Dec 7, 2019
@retlehs
Copy link
Sponsor Member

retlehs commented Dec 7, 2019

thank you for this contribution! my apologies for the extremely long delay in getting this landed

@QuietNoise
Copy link

Hi,

When you reckon this fix will land in the WP plugin release?

@chesio
Copy link
Contributor

chesio commented Dec 11, 2019

Hi,

When you reckon this fix will land in the WP plugin release?

I'm not sure what you mean? The fix has been already released in version 3.9.0.

@QuietNoise
Copy link

My bad.
I assumed the plugin was available from WP Plugins portal https://wordpress.org/plugins and was expecting for update to show in WP admin as a regular update. Please ignore my comment then.

@chesio
Copy link
Contributor

chesio commented Dec 11, 2019

AFAIK the plugin has never been released in WordPress Plugins Directory. You can use Composer or GitHub Updater plugin to get the updates automatically.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants