diff options
Diffstat (limited to 'wp-includes/embed.php')
-rw-r--r-- | wp-includes/embed.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/embed.php b/wp-includes/embed.php index 9e59f1a..82cb45d 100644 --- a/wp-includes/embed.php +++ b/wp-includes/embed.php @@ -73,7 +73,7 @@ function wp_embed_defaults( $url = '' ) { $width = 500; } - $height = min( ceil( $width * 1.5 ), 1000 ); + $height = min( (int) ceil( $width * 1.5 ), 1000 ); /** * Filters the default array of embed dimensions. @@ -577,7 +577,7 @@ function get_oembed_response_data( $post, $width ) { ); $width = min( max( $min_max_width['min'], $width ), $min_max_width['max'] ); - $height = max( ceil( $width / 16 * 9 ), 200 ); + $height = max( (int) ceil( $width / 16 * 9 ), 200 ); $data = array( 'version' => '1.0', |