[wp-trac] [WordPress Trac] #40276: enhancement: add a $type parameter to wp_add_inline_script()
WordPress Trac
noreply at wordpress.org
Thu Mar 30 17:41:14 UTC 2017
#40276: enhancement: add a $type parameter to wp_add_inline_script()
---------------------------+------------------------------
Reporter: paulschreiber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7.3
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by paulschreiber):
I originally wrote this up because of MathJax, which wants a block like
this:
<script type='text/x-mathjax-config'>
An even more widespread example is the ld+json structured data Google uses
everywhere:
<script type='application/ld+json'>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40276#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list