So I took over a site with 100+ plugins. I've reduced the plugin stack to 44. With WP_DEBUG enabled; I am getting a
wp_register_script was called incorrectly warning.
Is there an easy way to find out WHERE the call to the script is occurring? Something like "var dump all scripts being called incorrectly"? Something which would give further information, like the script handle perhaps.
I've looked on SE; but only find answers explaining how to fix the error; by wrapping it with the proper function. I can't seem to find an explanation of how to find the file making the call.