Function wp_enqueue_script Called Incorrectly | WordPress.org

[ad_1]

Upon installing Query Monitor and navigating through our website, Query monitor generated the following “Doing it Wrong” message:

Function wp_enqueue_script was called incorrectly.

Details: https://prnt.sc/18TjTAg390ys

The above happens with the following code snippet activated:

Details: https://prnt.sc/kKUdjb9f1JSP

When we deactivate the code snippet, the “Doing it Wrong” message disappears, but our dropdown flags shift upward from the country name next to them.

Can you share more about this? Fix required?

Not a biggie, no issues at our end.

Our environment: PHP 8.3.0, WP 6.3.1

Thank you.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer