WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/30/2014 11:15:33 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Pass $url parameter to wp_embed_defaults() and 'embed_defaults' filter.

props wpsmith, sabreuse, jacobdubail.
fixes #20151.

File:
1 edited

Legend:

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

    r28846 r28923  
    278278     */
    279279    public function fetch( $provider, $url, $args = '' ) {
    280         $args = wp_parse_args( $args, wp_embed_defaults() );
     280        $args = wp_parse_args( $args, wp_embed_defaults( $url ) );
    281281
    282282        $provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider );
Note: See TracChangeset for help on using the changeset viewer.