Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Localization throwing PHP notices #74

Open
emrikol opened this issue Aug 17, 2023 · 0 comments
Open

Script Localization throwing PHP notices #74

emrikol opened this issue Aug 17, 2023 · 0 comments

Comments

@emrikol
Copy link

emrikol commented Aug 17, 2023

Notice: Function WP_Scripts::localize was called <strong>incorrectly</strong>. The <code>$l10n</code> parameter must be an array. To pass arbitrary data to scripts, use the <code>wp_add_inline_script()</code> function instead. Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.7.0.) in /wp/wp-includes/functions.php on line 5906

This is coming from the localization in pardot.php

There's also an open WordPress.org Plugin Forum topic about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant