Make WordPress Core

Ticket #16996: 16996-3.diff

File 16996-3.diff, 556 bytes (added by r-a-y, 13 years ago)
  • wp-includes/class-oembed.php

     
    169169                $provider = add_query_arg( 'maxheight', $args['height'], $provider );
    170170                $provider = add_query_arg( 'url', urlencode($url), $provider );
    171171
     172                apply_filters( 'oembed_params_before_fetch', $provider, $args );
     173
    172174                foreach( array( 'json', 'xml' ) as $format ) {
    173175                        $result = $this->_fetch_with_format( $provider, $format );
    174176                        if ( is_wp_error( $result ) && 'not-implemented' == $result->get_error_code() )