• Resolved wbmessenger

    (@wbmessenger)


    Just updated to WordPress 5.8 and started receiving a notice in the WordPress admin on the new widgets.php page. Through process of elimination I narrowed the issue down to this plugin.

    This is the notice I’m now receiving: Notice: 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 /nas/content/live/site-name/wp-includes/functions.php on line 5535

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor tschortsch

    (@tschortsch)

    Thanks for the hint. We could reproduce the Notice and will fix it in the next version of the plugin!

    Plugin Contributor tschortsch

    (@tschortsch)

    @wbmessenger we just released v3.3.2 of the plugin where the deprecation notice shouldn’t appear anymore. Thanks again for reporting the issue!

    Thread Starter wbmessenger

    (@wbmessenger)

    That’s great! Thank you.

    Thread Starter wbmessenger

    (@wbmessenger)

    Quick question.. For my own education, are you able to provide a changelog and example of how you implemented this fix? I feel I may run into this with other plugins and will have to add a patch myself.

    Thanks again.

    Plugin Contributor tschortsch

    (@tschortsch)

    Sure, but the possibility that you run into the same issue is rather low. We try to keep the plugin as backwards-compatible as possible. That’s why we still have kept the wp-editor package in the dependency array when enqueuing our script. This package was deprecated in WordPress 5.2 and replaced with wp-block-editor. We now remove this dependency when the plugin is used with WordPress 5.2 or newer. See the change we did here: https://github.com/liip/bootstrap-blocks-wordpress-plugin/commit/6f34e9c0bec7ab4959c69cc9c989eee50be5fa52

    Thread Starter wbmessenger

    (@wbmessenger)

    This is great info, thanks so much for the responsiveness. Love the plugin and will continue to use on most of my sites with Bootstrap.

    Thread Starter wbmessenger

    (@wbmessenger)

    I did see this same notice pop up with the Yoast SEO plugin and a Lazy Load for Videos plugin. Yoast has the update in their queue. Reported to Lazy Load but not sure if it’s actively managed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress 5.8 new PHP Notice’ is closed to new replies.