Admin javascript interfering with other parts of site
-
The javascript loaded on each and every admin page is interfering with other plugins.
Please adjust the code that the javascript only loads on actual wunderautomation admin pages.
WordPress has an way for this, I made this quick change to the plugin in /src/Admin.php line 390
/** * Register the JavaScript for the admin area. * * @since 1.0.0 */ public function enqueueScripts($hook) { if ('post.php' !== $hook) { return; }
This fixes the error with other plugins. Of course this can be even better to check the current post type, which I definately advice but for now it works.
More information, like activating on certain submenu pages (in examples):
https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Admin javascript interfering with other parts of site’ is closed to new replies.