Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58873, comment 2


Ignore:
Timestamp:
08/15/2025 12:23:34 AM (8 months ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58873, comment 2

    initial v1  
    1212wp_add_inline_script(
    1313    $handle,
    14     sprintf( 'var foo = %s;', wp_json_encode( $data ) ),
     14    sprintf( 'var foo = %s;', wp_json_encode( $data, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ),
    1515    'before'
    1616);