Skip to content

Commit

Permalink
Fix bug when oversize parameter is not set in image config
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Jan 2, 2017
1 parent 62c0bdb commit f3b8a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Timmy.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ public static function get_image_params( $timber_image, $img_size ) {
$oversize = isset( $img_size['oversize'] ) ? $img_size['oversize'] : array();

// Turn shortcut boolean value for oversize into array
if ( ! is_array( $img_size['oversize'] ) ) {
$oversize = array( 'allow' => $img_size['oversize'] );
if ( is_bool( $oversize ) ) {
$oversize = array( 'allow' => $oversize );
}

$oversize_defaults = array(
Expand Down

0 comments on commit f3b8a95

Please sign in to comment.