the plugin work great, you should update it or there is other plugin?
]]>In v1 in global-javascript.php, you need to use add_magic_quotes prior to saving to the database. The reason is WordPress automatically removes backslashes, but they need to be saved in JavaScript regular expressions.
On line 188, change to:
$post_id = wp_insert_post(add_magic_quotes($post));
On line 197, change to: wp_update_post(add_magic_quotes($safejs_post));
I’m using WordPress v4.0.1.
The is the code you can use to test with. Once you save it in the plugin, it will remove the backslashes in the GUI once the page reloads from the save.
function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, “,”);
}
I had only a brief look, but on a Blog there have been 404 errors for the global.min.js resource. After inspection there was no JS code in the editor, so I made the owner disable the plugin and that helped. However I think it would be better to not produce those <script> links from the pages if nothing is to be delivered so the plugin can be default active.
Thanks, bernd
]]>When using the global javascript tying to use jquery getting a 404 error. Even though its checked in the dependancy to include? Obviously I’m going something wrong.
]]>