>
tag.
*
* @since 4.4.0
*/
do_action( 'embed_head' );
?>
>
$data ) {
if ( $data['width'] / $data['height'] > $aspect_ratio ) {
$aspect_ratio = $data['width'] / $data['height'];
$measurements = array( $data['width'], $data['height'] );
$image_size = $size;
}
}
}
/**
* Filter the thumbnail image size for use in the embed template.
*
* @since 4.4.0
*
* @param string $image_size Thumbnail image size.
*/
$image_size = apply_filters( 'embed_thumbnail_image_size', $image_size );
$shape = $measurements[0] / $measurements[1] >= 1.75 ? 'rectangular' : 'square';
/**
* Filter the thumbnail shape for use in the embed template.
*
* Rectangular images are shown above the title
* while square images are shown next to the content.
*
* @since 4.4.0
*
* @param string $shape Thumbnail image shape. Either 'rectangular' or 'square'.
*/
$shape = apply_filters( 'embed_thumbnail_image_shape', $shape );
}
?>