Cast widget and height to int in WP_oEmbed:fetch() so we don't have to rely on providers.
git-svn-id: https://develop.svn.wordpress.org/trunk@17995 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
57b6c9aeda
commit
85c07485bf
@ -158,8 +158,8 @@ class WP_oEmbed {
|
||||
function fetch( $provider, $url, $args = '' ) {
|
||||
$args = wp_parse_args( $args, wp_embed_defaults() );
|
||||
|
||||
$provider = add_query_arg( 'maxwidth', $args['width'], $provider );
|
||||
$provider = add_query_arg( 'maxheight', $args['height'], $provider );
|
||||
$provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider );
|
||||
$provider = add_query_arg( 'maxheight', (int) $args['height'], $provider );
|
||||
$provider = add_query_arg( 'url', urlencode($url), $provider );
|
||||
|
||||
foreach( array( 'json', 'xml' ) as $format ) {
|
||||
|
Loading…
Reference in New Issue
Block a user