Skip to content

Commit 5e92a9a

Browse files
committed
Remove now-redundant type coersion
1 parent de7d55f commit 5e92a9a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/wp-includes/embed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,9 +742,9 @@ function get_oembed_response_data_rich( $data, $post, $width, $height ) {
742742
$thumbnail_src = wp_get_attachment_image_src( $thumbnail_id, array( $width, 0 ) );
743743

744744
if ( is_array( $thumbnail_src ) ) {
745-
$data['thumbnail_url'] = (string) ( $thumbnail_src[0] ?? '' );
746-
$data['thumbnail_width'] = (int) ( $thumbnail_src[1] ?? 0 );
747-
$data['thumbnail_height'] = (int) ( $thumbnail_src[2] ?? 0 );
745+
$data['thumbnail_url'] = $thumbnail_src[0];
746+
$data['thumbnail_width'] = $thumbnail_src[1];
747+
$data['thumbnail_height'] = $thumbnail_src[2];
748748
}
749749
}
750750

0 commit comments

Comments
 (0)