Support » Plugin: WunderAutomation » Admin javascript interfering with other parts of site

  • Resolved opicron

    (@opicron)


    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/

    • This topic was modified 3 months ago by opicron.
    • This topic was modified 3 months ago by opicron.
Viewing 4 replies - 1 through 4 (of 4 total)
  • opicron

    (@opicron)

    Notifications not enabled? 😉

    Plugin Author wundermatics

    (@wundermatics)

    Hi,

    Thanks for the report and sorry for delay in the respone. We’re preparing for a new version (1.3) of the plugin with some new features. We’ve just decided to fix your reported issue with an intermediate release. Will publish within the next 24-48 hours.

    /Wundermatics team

    Plugin Author wundermatics

    (@wundermatics)

    Hi,

    Well, this took a bit longer than we first anticipated, but today we released version 1.3.0. In this release the issue with emitting javascript when not strictly needed is taken care of.

    Great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.