Skip to content

Commit

Permalink
Fix accessing full size image in get_timber_image()
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Jun 19, 2019
1 parent bb60048 commit f2faaed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ function get_timber_image_src( $timber_image, $size ) {
return false;
}

// Directly return full source when an SVG image is requested.
if ( 'image/svg+xml' === $timber_image->post_mime_type ) {
// Directly return full source when full source or an SVG image is requested.
if ( 'full' === $size || 'image/svg+xml' === $timber_image->post_mime_type ) {
return wp_get_attachment_url( $timber_image->ID );
}

Expand Down

0 comments on commit f2faaed

Please sign in to comment.