[wp-trac] [WordPress Trac] #35240: embed_oembed_html filter not used with wp_oembed_get
WordPress Trac
noreply at wordpress.org
Mon Dec 28 01:06:52 UTC 2015
#35240: embed_oembed_html filter not used with wp_oembed_get
--------------------------+-----------------------------
Reporter: theMikeD | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 4.4
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
There is a filter called `embed_oembed_html` that is useful for things
like wrapping embedded videos to control dimensions via CSS. This filter
is found in the code for executing shortcodes and works as expected when
the url to be embedded exists in the post content. But it's not being
called when the `wp_oembed_get` function is called.
To my way of thinking, it or a new filter be present in `wp_oembed_get` to
enable the same kind of wrapping. Or is it supposed to be called and it's
a bug? I'm not familiar with this section of the code so perhaps the issue
lies elsewhere?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35240>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list