[wp-trac] [WordPress Trac] #60320: JSON is corrupted when output via wp_get_inline_script_tag() and HTML5 theme support absent
WordPress Trac
noreply at wordpress.org
Tue Jan 23 17:54:41 UTC 2024
#60320: JSON is corrupted when output via wp_get_inline_script_tag() and HTML5
theme support absent
--------------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5
Component: Script Loader | Version: 6.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: javascript
--------------------------------------+--------------------------
Changes (by westonruter):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"57341" 57341]:
{{{
#!CommitTicketReference repository="" revision="57341"
Script Loader: Only emit CDATA wrapper comments in
`wp_get_inline_script_tag()` for JavaScript.
This avoids erroneously adding CDATA wrapper comments for non-JavaScript
scripts, including those for JSON such as the `importmap` for script
modules in #56313.
Props westonruter, flixos90, mukesh27, dmsnell.
See #56313.
Fixes #60320.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60320#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list