From 93e549f03f604f212c3f42630b413b15c1f03ad8 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 15 Jun 2017 10:19:06 +0000 Subject: [PATCH] Twenty Seventeen: Remove/merge unused variables in content-front-page.php. #wceu2017 Props dingo_bastard, mariusvetrici. Fixes #39771. git-svn-id: https://develop.svn.wordpress.org/trunk@40904 602fd350-edb4-49c9-b593-d223f7449a82 --- .../template-parts/page/content-front-page.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php b/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php index 38fa0f77e9..84a0d7e448 100644 --- a/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php +++ b/src/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; ?>