creativecommons / wp-plugin-creativecommons

Official Creative Commons plugin for licensing your content. With Creative Commons licenses, keep your copyright AND share your creativity.
https://wordpress.org/plugins/creative-commons/
GNU General Public License v2.0
150 stars 100 forks source link

Notice: wp_enqueue_script() was called incorrectly #186

Open brylie opened 2 years ago

brylie commented 2 years ago

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

cillacode commented 2 years ago

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

brylie commented 2 years ago

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

cillacode commented 2 years ago

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

brylie commented 2 years ago

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.

cillacode commented 2 years ago

alright @brylie i understand now will look at it

cillacode commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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

brylie commented 2 years ago

Very good :-)

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

dharmik9829 commented 1 year ago

Hello there can someone assign this issue to me?

dharmik9829 commented 1 year ago

this issue is still open or not?

Vickyaryan33 commented 1 year ago

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