Make WordPress Core

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


Ignore:
Timestamp:
09/17/2011 07:28:24 AM (13 years ago)
Author:
nacin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11520, comment 61

    initial v1  
    1 [attachment:wp_localize_script.test-case.diff] shows that wp_localize_script() escaping behavior has changed from 3.2 to 3.3. The test is janky, as it has to parse JS output, but the result is clear, and illustrates what [comment:53] outlined.
     1[attachment:wp_localize_script.test-case.diff] shows that wp_localize_script() escaping behavior has changed from 3.2 to 3.3. The test is janky, as it has to parse JS output, but the result is clear, and illustrates what [comment:53 comment 53] outlined.
    22
    33The test works in 3.2, and fails in 3.3. This convinces me that we should leave wp_localize_script() alone and switch to wp_add_script_data().