WordPress.org

Make WordPress Core

Changeset 39286


Ignore:
Timestamp:
11/18/2016 06:35:15 AM (18 months ago)
Author:
helen
Message:

Twenty Seventeen: Remove some extraneous function calls.

fixes #38848.

File:
1 edited

Legend:

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

    r38986 r39286  
    1818        $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' );
    1919
    20         $post_thumbnail_id = get_post_thumbnail_id( $post->ID );
    21 
    22         $thumbnail_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'twentyseventeen-featured-image' );
    23 
    2420        // Calculate aspect ratio: h / w * 100%.
    25         $ratio = $thumbnail_attributes[2] / $thumbnail_attributes[1] * 100;
     21        $ratio = $thumbnail[2] / $thumbnail[1] * 100;
    2622        ?>
    2723
Note: See TracChangeset for help on using the changeset viewer.