WordPress Error Notice: Function WP_Scripts::localize was called incorrectly.
-
We recently installed the Pardot Plugin (version 2.0) on our WordPress site and when I activate the plugin, its gives the following error on the top of the page,
Notice: Function WP_Scripts::localize was called incorrectly. The$l10n
parameter must be an array. To pass arbitrary data to scripts, use thewp_add_inline_script()
function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /opt/bitnami/wordpress/wp-includes/functions.php on line 5905
I tried switching off the WP Debug by adding the following line in the wp-config.php file, but nothing happened.
define(‘WP_DEBUG_DISPLAY’, false);Does anyone faced this issue before or have any solutions for it?
Thanks
- The topic ‘WordPress Error Notice: Function WP_Scripts::localize was called incorrectly.’ is closed to new replies.