[Plugin: Content Warning] Plugin is broken for some sites, update in 48 hours!
-
I’ve had a look at a few sites and noticed that there’s an add/slash bug that’s preventing the ajax from being called. I’ll get started on fixing this maybe today or tomorrow, depends on my availability. For those of you code junkies, this is the issue.
The script utilizes wp_localize_script, well with WP 3.3 they ‘fixed’ it… anyhow, I’ve tried viewing chromes logs, and no actual “errors” have popped up, but here’s what happens within the code.
The localized data should be like so: /* <![CDATA[ */var cwv2Params = { postID: "63", url: "https://www.theinkwellwv.com/wp-content/plugins/content-warning-v2/ajax.php"};/* ]]> */ Instead it's coming up like so: /* <![CDATA[ */var cwv2Params = {"postID":"867","url":"http:\/\/taboovideo.com\/wp-content\/plugins\/content-warning-v2\/ajax.php"};/* ]]> */
While the two sites are different, both are running the same version of the plugin, while the latter is running WP 3.3, notice the added slashes in the URL variable for the javaScript.
- The topic ‘[Plugin: Content Warning] Plugin is broken for some sites, update in 48 hours!’ is closed to new replies.