WordPress.org

Make WordPress Core

Ticket #16996: 16996-4.diff

File 16996-4.diff, 562 bytes (added by r-a-y, 7 years ago)

Passes $url as a parameter

  • 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, $url, $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() )