Make WordPress Core

Changeset 18019


Ignore:
Timestamp:
05/24/2011 03:54:07 PM (13 years ago)
Author:
ryan
Message:

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

Location:
branches/3.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1

  • branches/3.1/wp-includes/class-oembed.php

    r16444 r18019  
    166166        $args = wp_parse_args( $args, wp_embed_defaults() );
    167167
    168         $provider = add_query_arg( 'maxwidth', $args['width'], $provider );
    169         $provider = add_query_arg( 'maxheight', $args['height'], $provider );
     168        $provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider );
     169        $provider = add_query_arg( 'maxheight', (int) $args['height'], $provider );
    170170        $provider = add_query_arg( 'url', urlencode($url), $provider );
    171171
Note: See TracChangeset for help on using the changeset viewer.