[wp-trac] [WordPress Trac] #35264: wp_enqueue_script does not allow different types
WordPress Trac
noreply at wordpress.org
Wed Dec 30 11:02:53 UTC 2015
#35264: wp_enqueue_script does not allow different types
---------------------------+-----------------------------
Reporter: mampf | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 4.4
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Dear devs,
I'd like to include a jsonld markup into my blog. I just created a plugin
"wp-jsonld" (being reviewed atm).
I am unable to use wp_enqueue_script() and need to use echo instead,
because I cannot change the type of the output. wp_enqueue_script() will
always assume "text/javascript", where I need to use
"application/ld+json".
Other uses (like json+p) might also be of interest.
Best regards,
Ben
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35264>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list