mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -277,7 +277,7 @@ class WP_oEmbed {
|
||||
* @return bool|object False on failure, otherwise the result in the form of an object.
|
||||
*/
|
||||
public function fetch( $provider, $url, $args = '' ) {
|
||||
$args = wp_parse_args( $args, wp_embed_defaults() );
|
||||
$args = wp_parse_args( $args, wp_embed_defaults( $url ) );
|
||||
|
||||
$provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider );
|
||||
$provider = add_query_arg( 'maxheight', (int) $args['height'], $provider );
|
||||
|
||||
Reference in New Issue
Block a user