summaryrefslogtreecommitdiffstats
path: root/wp-includes/embed.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:26 +0000
commit30883c26bdceb9eaf32c8d4a1b0c1bce223b5226 (patch)
tree39a02e2aeb21ab5b7923c6f5757d66d55b708912 /wp-includes/embed.php
parentAdding upstream version 6.4.3+dfsg1. (diff)
downloadwordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.tar.xz
wordpress-30883c26bdceb9eaf32c8d4a1b0c1bce223b5226.zip
Adding upstream version 6.5+dfsg1.upstream/6.5+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/embed.php')
-rw-r--r--wp-includes/embed.php4
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',