Skip to content

Commit

Permalink
Merge pull request #33 from WP4Laravel/feature/image-must-expose-its-…
Browse files Browse the repository at this point in the history
…attachment

Image must expose its attachment
  • Loading branch information
jgrossi authored Apr 27, 2017
2 parents cc24fa0 + f2116dd commit 58eaa5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Field/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public function get()
*/
protected function fillFields(Post $attachment)
{
$this->attachment = $attachment;

$this->mime_type = $attachment->post_mime_type;
$this->url = $attachment->guid;
$this->description = $attachment->post_excerpt;
Expand Down

0 comments on commit 58eaa5c

Please sign in to comment.