Open jessecowens opened 2 years ago
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:
doing_it_wrong
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:
doing_it_wrong
warning is displayed in the Publish metabox.