Including a js file that does not exist
-
Looks like this plugin is including a js file (/assets/js/script.js) that doesn’t exist. It doesn’t cause an issue, it just doesn’t doesn’t seem to need to. Seems like it gets called in wpms-network-global-inserts.php in this function:
function load_script() { wp_enqueue_script('wpmsngi_script', WPMSNGI_URL . '/assets/js/script.js', array('jquery')); }
I am going to dequeue it wiht this:
add_action( 'wp_enqueue_scripts', 'remove_scripts', 99 ); function remove_scripts() { //Remove an 404 js file that the WPME Network Global Inserts plugin is including wp_dequeue_script('wpmsngi_script'); }
http://wordpress.org/extend/plugins/wpms-network-global-inserts/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Including a js file that does not exist’ is closed to new replies.