From 30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:57:26 +0200 Subject: Adding upstream version 6.5+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/embed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-includes/embed.php') 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', -- cgit v1.2.3