Skip to content

Commit

Permalink
Fixes bug where items being added to lists without thumbnails were di…
Browse files Browse the repository at this point in the history
…splaying broken image
  • Loading branch information
Kyle Phillips committed Jun 13, 2017
1 parent a7f5be3 commit e4d5269
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Entities/Favorite/FavoritesArrayFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ private function checkCurrentPost()
*/
private function addThumbnails($post_id)
{
if ( !has_post_thumbnail($post_id) ) return false;
$sizes = get_intermediate_image_sizes();
$thumbnails = array();
foreach ( $sizes as $size ){
Expand Down

0 comments on commit e4d5269

Please sign in to comment.