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-wp-embed.php

    r28919 r28923  
    157157
    158158        $rawattr = $attr;
    159         $attr = wp_parse_args( $attr, wp_embed_defaults() );
     159        $attr = wp_parse_args( $attr, wp_embed_defaults( $url ) );
    160160
    161161        // kses converts & into & and we need to undo this
Note: See TracChangeset for help on using the changeset viewer.