Changes between Initial Version and Version 1 of Ticket #11520, comment 24
- Timestamp:
- 07/25/2011 08:31:30 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11520, comment 24
initial v1 1 1 > wp_localize_script() is for localizing a script. 2 2 3 IMO, that's an arbitrary distinction, since there's no native way to do that in JavaScript. 3 IMO, that's an arbitrary distinction, since there's no native way to do that in JavaScript. It's just variables that you can use for any purpose. 4 4 5 5 On the other hand, add_script_data() could be a wrapper for add_inline_script(), if we decide to add it.