WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #11520, comment 24


Ignore:
Timestamp:
07/25/11 08:31:30 (4 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11520, comment 24

    initial v1  
    11> wp_localize_script() is for localizing a script. 
    22 
    3 IMO, that's an arbitrary distinction, since there's no native way to do that in JavaScript. 
     3IMO, 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. 
    44 
    55On the other hand, add_script_data() could be a wrapper for add_inline_script(), if we decide to add it.