• Resolved volaticus

    (@volaticus)


    When this plugin is installed, the Widgets page in the CMS generates this notice:

    Notice: Function wp_enqueue_script() was called incorrectly. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see Debugging in WordPress for more information. (This message was added in version 5.8.0.) in /wp-includes/functions.php on line 5865

    From debugging our own plugins, this seems to related to including ‘wp-editor’ in the array of dependencies when using wp_enqueue_scripts.

    Removing ‘wp-editor’ from the dependencies array in /menu-icons/vendor/codeinwp/gutenberg-menu-icons/class-gutenberg-menu-icons.php on line 63 resolves this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Stefan Cotitosu

    (@stefancotitosu)

    Hi @volaticus,

    Thank you for using Menu Icons, and I’m sorry to hear about the difficulties you encountered.

    I forwarded the issue to the development team to be considered for the next release.

    Please note that the warning is displayed only if the WP_DEBUG is set to true.

    Have a great day ahead!

    Plugin Support Vytis

    (@bvytis)

    Hi @volaticus,

    We released a fix for the reported issue today, please update the plugin and you shouldn’t see the warning anymore.

    Thank you for reporting this once again and have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice for Enqueuing Scripts on Widgets Page’ is closed to new replies.