404 exception on wp_enqueue_script
-
Hi,
I’m John, the author of the Hide My WP Ghost plugin. I want to say that you did a really great job with your plugin.
We have only one small request.
Our users have a problem when using your plugin together with ours because our plugin is hiding the old JS and CSS paths for visitors after customizing the paths.
In cmb2_metatabs_options.php file, you are checking the js as using the get_headers function which calls the old path without cookies (like a visitor) and returns 404. There is no need for such verification as it consumes the loading time too.
$headers = @get_headers( self::$props[ $this->id ]['jsuri'] ); if ( $headers[0] == 'HTTP/1.1 404 Not Found' ) { throw new Exception( 'CMB2_Metatabs_Options: Passed Javascript file missing.' ); }
The JS file is enqueued correctly if you don’t perform this action.
Can you please remove this check so that the plugins can work together?
Thank you,
JohnThe page I need help with: [log in to see the link]
- The topic ‘404 exception on wp_enqueue_script’ is closed to new replies.