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

[Bug] wp_localize_script is doing_it_wrong #129

Open
jessecowens opened this issue Nov 17, 2021 · 0 comments
Open

[Bug] wp_localize_script is doing_it_wrong #129

jessecowens opened this issue Nov 17, 2021 · 0 comments

Comments

@jessecowens
Copy link
Member

Describe the bug
We're using wp_localize_script to pass data to JavaScript. We should be using wp_add_inline_script instead.

To Reproduce
Steps to reproduce the behavior:

  1. Enable Debug Display
  2. edit a post or page
  3. note that the doing_it_wrong warning is displayed in the Publish metabox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants