diff --git a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php index 38fa0f77e9..84a0d7e448 100644 --- a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php +++ b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php @@ -14,12 +14,8 @@ 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; ?>