WordPress.org

Make WordPress Core

Changeset 17995


Ignore:
Timestamp:
05/22/11 23:20:48 (4 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-oembed.php

    r17978 r17995  
    159159        $args = wp_parse_args( $args, wp_embed_defaults() ); 
    160160 
    161         $provider = add_query_arg( 'maxwidth', $args['width'], $provider ); 
    162         $provider = add_query_arg( 'maxheight', $args['height'], $provider ); 
     161        $provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider ); 
     162        $provider = add_query_arg( 'maxheight', (int) $args['height'], $provider ); 
    163163        $provider = add_query_arg( 'url', urlencode($url), $provider ); 
    164164 
Note: See TracChangeset for help on using the changeset viewer.