Cast widget and height to int in WP_oEmbed:fetch() so we don't have to rely on providers.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-05-22 23:20:48 +00:00
parent 81a5f821fb
commit 7ba7176d62
1 changed files with 2 additions and 2 deletions

View File

@ -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 ) {