Skip to content

Commit

Permalink
Add size argument
Browse files Browse the repository at this point in the history
Add size argument to getAttachmentUrl() call on AttachmentHelper instance
  • Loading branch information
Peyman Mohamadpour authored and kayue committed Apr 11, 2018
1 parent 0c72c64 commit 15cf470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Twig/Extension/WordpressExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ public function findThumbnail(Post $post)
return $this->attachmentHelper->findThumbnail($post);
}

public function getAttachmentUrl($post)
public function getAttachmentUrl($post, $size = 'post-thumbnail')
{
return $this->attachmentHelper->getAttachmentUrl($post);
return $this->attachmentHelper->getAttachmentUrl($post, $size);
}

public function getPostFormatByPost(Post $post)
Expand Down

0 comments on commit 15cf470

Please sign in to comment.