mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Embeds: ensure correct thumbnail height.
Use height 0 instead of 9999 to avoid unnecessarily using the full size version. Props colinleroy, swissspidy. Fixes #62094. Built from https://develop.svn.wordpress.org/trunk@59493 git-svn-id: http://core.svn.wordpress.org/trunk@58879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61b026c27f
commit
c24a5b9062
@ -721,7 +721,7 @@ function get_oembed_response_data_rich( $data, $post, $width, $height ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $thumbnail_id ) {
|
if ( $thumbnail_id ) {
|
||||||
list( $thumbnail_url, $thumbnail_width, $thumbnail_height ) = wp_get_attachment_image_src( $thumbnail_id, array( $width, 99999 ) );
|
list( $thumbnail_url, $thumbnail_width, $thumbnail_height ) = wp_get_attachment_image_src( $thumbnail_id, array( $width, 0 ) );
|
||||||
$data['thumbnail_url'] = $thumbnail_url;
|
$data['thumbnail_url'] = $thumbnail_url;
|
||||||
$data['thumbnail_width'] = $thumbnail_width;
|
$data['thumbnail_width'] = $thumbnail_width;
|
||||||
$data['thumbnail_height'] = $thumbnail_height;
|
$data['thumbnail_height'] = $thumbnail_height;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.8-alpha-59492';
|
$wp_version = '6.8-alpha-59493';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user