Make WordPress Core


Ignore:
Timestamp:
09/13/2012 05:45:36 PM (12 years ago)
Author:
nacin
Message:

Introduce an oembed_fetch_url filter to be applied before sending the request.

props Otto42, r-a-y. fixes #16996.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-oembed.php

    r21792 r21839  
    163163        $provider = add_query_arg( 'maxheight', (int) $args['height'], $provider );
    164164        $provider = add_query_arg( 'url', urlencode($url), $provider );
     165       
     166        $provider = apply_filters( 'oembed_fetch_url', $provider, $args, $url );
    165167
    166168        foreach( array( 'json', 'xml' ) as $format ) {
Note: See TracChangeset for help on using the changeset viewer.