Twenty Seventeen: Remove some extraneous function calls.
fixes #38848. Built from https://develop.svn.wordpress.org/trunk@39286 git-svn-id: http://core.svn.wordpress.org/trunk@39226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
560e93ec80
commit
000cd0c68d
|
@ -17,12 +17,8 @@ global $twentyseventeencounter;
|
|||
<?php if ( has_post_thumbnail() ) :
|
||||
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' );
|
||||
|
||||
$post_thumbnail_id = get_post_thumbnail_id( $post->ID );
|
||||
|
||||
$thumbnail_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' );
|
||||
|
||||
// Calculate aspect ratio: h / w * 100%.
|
||||
$ratio = $thumbnail_attributes[2] / $thumbnail_attributes[1] * 100;
|
||||
$ratio = $thumbnail[2] / $thumbnail[1] * 100;
|
||||
?>
|
||||
|
||||
<div class="panel-image" style="background-image: url(<?php echo esc_url( $thumbnail[0] ); ?>);">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-beta4-39285';
|
||||
$wp_version = '4.7-beta4-39286';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue