From 000cd0c68d436a908ffff060930d99d7a688ef1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Fri, 18 Nov 2016 06:36:32 +0000 Subject: [PATCH] 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 --- .../template-parts/page/content-front-page-panels.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-panels.php b/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php index f2d45f48f2..79e11949b9 100644 --- a/wp-content/themes/twentyseventeen/template-parts/page/content-front-page-panels.php +++ b/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; ?>
diff --git a/wp-includes/version.php b/wp-includes/version.php index 9f55f68bb1..329cacbeb6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.