[wp-trac] [WordPress Trac] #20851: Expand the capabilities of oembed
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 6 15:08:39 UTC 2012
#20851: Expand the capabilities of oembed
-----------------------------+------------------------
Reporter: Otto42 | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Embeds | Version: 3.3.2
Severity: normal | Resolution: duplicate
Keywords: |
-----------------------------+------------------------
Comment (by Otto42):
pre_http_request and filtering wp_embed_defaults don't give you the args
from the shortcode, so you can only affect things on a global scale.
Reissuing the fetch is just bad mojo, obviously. Go to all the effort of
making an HTTP request only to throw it away and do it all over again
differently? Please.
I'll add a patch for #16996 to add a filter. It's a simple one-liner to
make this pluggable. Just filter the $provider string and pass the $args
and $url along as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20851#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list