Function WP_Scripts::localize was called incorrectly
-
Hi,
since yesterday i keep getting the following error which keeps repeating itself in the debug.log.
PHP 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 …/wp-includes/functions.php on line 5835.My entire programming environment is up to date.
How can be solved?
Thank you in advance for your kind support.
Best Regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Function WP_Scripts::localize was called incorrectly’ is closed to new replies.