diff --git a/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php b/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php index f2d45f48f2..79e11949b9 100644 --- a/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php +++ b/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php @@ -17,12 +17,8 @@ global $twentyseventeencounter; 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; ?>