WordPress.org

Make WordPress Core

Changeset 21840


Ignore:
Timestamp:
09/13/2012 05:49:23 PM (6 years ago)
Author:
nacin
Message:

Switch $args and $url for the oembed_fetch_url filter introduced in [21839]. A bit more logical, especially given the order of arguments passed to fetch(). see #16996.

File:
1 edited

Legend:

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

    r21839 r21840  
    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 );
     165
     166        $provider = apply_filters( 'oembed_fetch_url', $provider, $url, $args );
    167167
    168168        foreach( array( 'json', 'xml' ) as $format ) {
Note: See TracChangeset for help on using the changeset viewer.