From 85c07485bf3cb8493beaf9fc085fc5a860036145 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 22 May 2011 23:20:48 +0000 Subject: [PATCH] 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 --- wp-includes/class-oembed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index c7c241affe..8bfe258651 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -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 ) {