WP_Scripts::localize was called incorrectly
-
When turning DEBUG on, I get a full load of this error…
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.)
As seen here: https://snipboard.io/cYsfUX.jpg
Could you correct this please by adding a variable type check?The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WP_Scripts::localize was called incorrectly’ is closed to new replies.