Notice: Function wp_enqueue_script() was called incorrectly.
-
This looks like WordPress error itself but it is come from hook that this plugin added and being called by WordPress. Disable this plugin and error (notice) disappears.
Error details:
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 <a>Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.) in wp-includes\functions.php on line 6033- {main}( )
- require( ‘wp-admin\widgets-form-blocks.php )
- require_once( ‘wp-admin\admin-header.php )
- do_action( $hook_name = ‘admin_head‘ )
- WP_Hook->do_action( $args = [0 => ”] )
- WP_Hook->apply_filters( $value = ”, $args = [0 => ”] )
- wp_check_widget_editor_deps( ” )
- _doing_it_wrong( $function_name = ‘wp_enqueue_script()’, $message = ‘”wp-editor” script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets).’, $version = ‘5.8.0’ )
- wp_trigger_error( $function_name = ”, $message = ‘Function wp_enqueue_script() was called <strong>incorrectly</strong>. “wp-editor” script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see <a href=”https://www.ads-software.com/documentation/article/debugging-in-wordpress/”>Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.)’, $error_level = ??? )
- trigger_error( $message = ‘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 <a>Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.)’, $error_level = 1024 )
Currently testing with..
PHP 8.1
WordPress 6.5-alpha-57159Error occur since WordPress 5.8.1.
- The topic ‘Notice: Function wp_enqueue_script() was called incorrectly.’ is closed to new replies.