[wp-trac] [WordPress Trac] #23442: Allow wp_remote_get args to be filtered for oEmbed calls

WordPress Trac noreply at wordpress.org
Sun Feb 10 21:48:10 UTC 2013


#23442: Allow wp_remote_get args to be filtered for oEmbed calls
-----------------------------+-------------------------
 Reporter:  leewillis77      |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Embeds
  Version:  trunk            |   Severity:  normal
 Keywords:  has-patch        |
-----------------------------+-------------------------
 Currently, the oEmbed code use wp_remote_get() to communicate with the
 oEmbedded service. However, there's no way to filter the arguments that
 get used - it simply uses the system wide defaults.

 Filtering the defaults (E.g. http_request_timeout) seems overkill when you
 know that you only want to change things for something specific like an
 oEmbed call that you know may take longer than 5 seconds (E.g.
 https://github.com/leewillis77/wp-github-oembed/blob/1.2/github-
 api.php#L35)

 The attached patch adds a new filter oembed_remote_get_args which allows
 plugins to override the wp_remote_get args for oembed calls (Including
 discovery)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23442>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list