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

props wpsmith, sabreuse, jacobdubail.
fixes #20151.

git-svn-id: https://develop.svn.wordpress.org/trunk@28923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2014-06-30 11:15:33 +00:00
parent 0b9fb4f148
commit 4176aa347e
3 changed files with 9 additions and 6 deletions

View File

@@ -156,7 +156,7 @@ class WP_Embed {
return '';
$rawattr = $attr;
$attr = wp_parse_args( $attr, wp_embed_defaults() );
$attr = wp_parse_args( $attr, wp_embed_defaults( $url ) );
// kses converts & into & and we need to undo this
// See http://core.trac.wordpress.org/ticket/11311