Skip to content

Commit

Permalink
Merge pull request #386 from greenpeace/correct-articles-thumbnail-size
Browse files Browse the repository at this point in the history
PLANET-5472 Use existing thumbnail format
  • Loading branch information
comzeradd authored Sep 17, 2020
2 parents 963b34d + 113387b commit b120bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/blocks/class-articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private static function populate_post_items( $posts ) {
$dimensions = wp_get_attachment_metadata( $img_id );
$recent['thumbnail_ratio'] = ( isset( $dimensions['height'] ) && $dimensions['height'] > 0 ) ? $dimensions['width'] / $dimensions['height'] : 1;
$recent['alt_text'] = get_post_meta( $img_id, '_wp_attachment_image_alt', true );
$recent['thumbnail_url'] = get_the_post_thumbnail_url( $recent['ID'], 'medium-large' );
$recent['thumbnail_url'] = get_the_post_thumbnail_url( $recent['ID'], 'articles-medium-large' );
}

// TODO - Update this method to use P4_Post functionality to get Tags/Terms.
Expand Down

0 comments on commit b120bdd

Please sign in to comment.