Function WP_Scripts::localize was called incorrectly messge

[ad_1]

Hi:

I have upgraded your plugin AMP for WP – Accelerated Mobile Pages from 1.0.83 to 1.0.84 (WordPress 6.2)

Since then, I have received the following message:

Notice: Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /hermes/bosnacweb04/bosnacweb04bd/b2881/nf.pdm1/public_html/BlogPDM/wp-includes/functions.php on line 5865

I had to deactivate your plugin in order to avoid that message.

I appreciate your help to solve this problem

Regards,

Luis

 

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