[wp-trac] [WordPress Trac] #34204: Add fallbacks for WP oEmbed JavaScript & CSS
WordPress Trac
noreply at wordpress.org
Sat Oct 17 10:23:46 UTC 2015
#34204: Add fallbacks for WP oEmbed JavaScript & CSS
---------------------------+-------------------------
Reporter: peterwilsoncc | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Embeds | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
---------------------------+-------------------------
Comment (by swissspidy):
There's no `print_embed_styles` hook.
`print_emoji_styles` is already hooked to `wp_print_styles` so the styles
are already loaded.
[attachment:34204.diff] correctly hooks `enqueue_embed_scripts` to
`embed_head` instead of `oembed_head`.
Also, now that I'm working on it, we should leave the other hooks as-is.
Thanks for the info re: the `no-js` class. In the admin it's added to the
body, but I think here it's fine on the html embed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34204#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list