X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9441756a895fb4fdc4bcf20e0d228cef622663ca..4feeb71a9d812a9ae371c28a3d8b442a4394ded7:/wp-includes/embed-template.php diff --git a/wp-includes/embed-template.php b/wp-includes/embed-template.php index fab8c842..312c45c6 100644 --- a/wp-includes/embed-template.php +++ b/wp-includes/embed-template.php @@ -1,202 +1,13 @@ - - class="no-js"> - - <?php echo wp_get_document_title(); ?> - - 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 ); - } - ?> -
> - - - - -

- - - -

- - - - +_deprecated_file( basename( __FILE__ ), '4.5', 'wp-includes/theme-compat/embed.php' ); -
- - - - -
- -
-

- -
-

- ' . esc_html( get_bloginfo( 'name' ) ) . '' - ); - ?> -

-
- - -
- - - +include( ABSPATH . WPINC . '/theme-compat/embed.php' );