Skip to content

Commit 58eaa5c

Browse files
authored
Merge pull request #33 from WP4Laravel/feature/image-must-expose-its-attachment
Image must expose its attachment
2 parents cc24fa0 + f2116dd commit 58eaa5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Field/Image.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public function get()
8585
*/
8686
protected function fillFields(Post $attachment)
8787
{
88+
$this->attachment = $attachment;
89+
8890
$this->mime_type = $attachment->post_mime_type;
8991
$this->url = $attachment->guid;
9092
$this->description = $attachment->post_excerpt;

0 commit comments

Comments
 (0)