From 6a3be0ea29ac6e942e100e8656d70852a4f8cd95 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Thu, 15 Jun 2017 10:20:42 +0000 Subject: [PATCH] Twenty Seventeen: Remove/merge unused variables in content-front-page.php. #wceu2017 Props dingo_bastard, mariusvetrici. Fixes #39771. Built from https://develop.svn.wordpress.org/trunk@40904 git-svn-id: http://core.svn.wordpress.org/trunk@40754 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../template-parts/page/content-front-page.php | 6 +----- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) 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; ?>
diff --git a/wp-includes/version.php b/wp-includes/version.php index ccb74ca0e4..ee3c57c3c3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-40903'; +$wp_version = '4.9-alpha-40904'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.