Make WordPress Core

Changeset 40904


Ignore:
Timestamp:
06/15/2017 10:19:06 AM (8 years ago)
Author:
ocean90
Message:

Twenty Seventeen: Remove/merge unused variables in content-front-page.php.

#wceu2017

Props dingo_bastard, mariusvetrici.
Fixes #39771.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/template-parts/page/content-front-page.php

    r38868 r40904  
    1515        $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' );
    1616
    17         $post_thumbnail_id = get_post_thumbnail_id( $post->ID );
    18 
    19         $thumbnail_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' );
    20 
    2117        // Calculate aspect ratio: h / w * 100%.
    22         $ratio = $thumbnail_attributes[2] / $thumbnail_attributes[1] * 100;
     18        $ratio = $thumbnail[2] / $thumbnail[1] * 100;
    2319        ?>
    2420
Note: See TracChangeset for help on using the changeset viewer.