wp-plugin-creativecommons icon indicating copy to clipboard operation
wp-plugin-creativecommons copied to clipboard

Notice: wp_enqueue_script() was called incorrectly

Open brylie opened this issue 3 years ago • 12 comments

When installing the CreativeCommons plugin, on WordPress 5.8, the following notice is displayed:

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 /var/www/html/wp-includes/functions.php on line 5663

brylie avatar Oct 11 '21 09:10 brylie

hi @brylie i will love too work on this issue thanks.

cillacode avatar Oct 14 '21 15:10 cillacode

Thanks, @cillacode! I've assigned you to the task.

brylie avatar Oct 15 '21 09:10 brylie

@brylie can i know which module this issue is referring to.

cillacode avatar Oct 26 '21 01:10 cillacode

The issue occurs after installing the Creative Commons plugin. The notice "wp_enqueue_script() was called incorrectly" may not be severe, but it would be good to figure out why we are seeing the warning when WordPress is in debug mode.

brylie avatar Oct 26 '21 08:10 brylie

alright @brylie i understand now will look at it

cillacode avatar Oct 26 '21 08:10 cillacode

@brylie i did some research on this issue and the notice displays due to the deps checks in the ./wp-includes/widgets.php file
image

cillacode avatar Oct 27 '21 15:10 cillacode

so i made an edit in the ./wp-includes/default-filters.php file by commenting out the action that displays the error, and when i reloaded my localhost i didn't get the error image

image

cillacode avatar Oct 27 '21 15:10 cillacode

although i am still in search for the wp-enqueue-script that might have been hooked wrongly. my update for now thanks.

cillacode avatar Oct 27 '21 15:10 cillacode

Very good :-)

For now, let's disregard this issue and take a closer look at the tasks I shared in project_creativecommons.org

brylie avatar Oct 27 '21 17:10 brylie

Hello there can someone assign this issue to me?

dharmik9829 avatar Feb 28 '23 03:02 dharmik9829

this issue is still open or not?

dharmik9829 avatar Feb 28 '23 03:02 dharmik9829

I want to work on issues please assign me issues . @brylie

Vickyaryan33 avatar Mar 14 '23 07:03 Vickyaryan33