WordPress.org

WordPress build repository browser

Changeset 40754


Ignore:
Timestamp:
06/15/17 10:20:42 (2 months ago)
Author:
ocean90
Message:

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

Location:
trunk
Files:
2 edited

Legend:

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

    r38818 r40754  
    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 
  • trunk/wp-includes/version.php

    r40753 r40754  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '4.9-alpha-40903'; 
     7$wp_version = '4.9-alpha-40904'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.