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
This commit is contained in:
parent
f239e62722
commit
93e549f03f
@ -14,12 +14,8 @@
|
||||
<?php if ( has_post_thumbnail() ) :
|
||||
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->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;
|
||||
?>
|
||||
|
||||
<div class="panel-image" style="background-image: url(<?php echo esc_url( $thumbnail[0] ); ?>);">
|
||||
|
Loading…
x
Reference in New Issue
Block a user