Skip to content

Commit

Permalink
Fix #1688 - An issue with "Image Widget" custom sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
KingYes committed May 7, 2017
1 parent 2bdc419 commit 17bcd2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/controls/groups/image-size.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ public static function get_attachment_image_src( $attachment_id, $group_name, $i
$custom_dimension = $instance[ $group_name . '_custom_dimension' ];

$attachment_size = [
// Defaults sizes
0 => null, // Width
1 => null, // Height

'bfi_thumb' => true,
'crop' => true,
];
Expand Down

0 comments on commit 17bcd2f

Please sign in to comment.