diff --git src/wp-includes/default-filters.php src/wp-includes/default-filters.php index 1faa084..f964303 100644 --- src/wp-includes/default-filters.php +++ src/wp-includes/default-filters.php @@ -457,8 +457,13 @@ add_action( 'embed_head', 'wp_no_robots' ); add_action( 'embed_head', 'rel_canonical' ); add_action( 'embed_head', 'locale_stylesheet' ); -add_action( 'embed_content_meta', 'print_embed_comments_button' ); -add_action( 'embed_content_meta', 'print_embed_sharing_button' ); +add_action( 'embed_head', 'locale_stylesheet' ); +add_action( 'embed_head', 'locale_stylesheet' ); + +add_action( 'embed_heading_before', 'print_embed_thumbnail' ); +add_action( 'embed_content_before', 'print_embed_thumbnail' ); + +add_action( 'embed_content_footer', 'print_embed_site_title' ); add_action( 'embed_footer', 'print_embed_sharing_dialog' ); add_action( 'embed_footer', 'print_embed_scripts' ); diff --git src/wp-includes/embed-template.php src/wp-includes/embed-template.php index df2518f..1a5ffa8 100644 --- src/wp-includes/embed-template.php +++ src/wp-includes/embed-template.php @@ -33,65 +33,16 @@ if ( ! headers_sent() ) { $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'; - + ?> +