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

Function WP_Scripts::localize was called incorrectly. #4

Open
Dernerd opened this issue Feb 17, 2024 · 0 comments
Open

Function WP_Scripts::localize was called incorrectly. #4

Dernerd opened this issue Feb 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Dernerd
Copy link
Member

Dernerd commented Feb 17, 2024

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. (This message was added in version 5.7.0.)

@Dernerd Dernerd added the bug Something isn't working label Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant