From f2116dd509a0dcc0001a3954d740c89d80927b95 Mon Sep 17 00:00:00 2001 From: Jakob Buis Date: Wed, 26 Apr 2017 15:12:45 +0200 Subject: [PATCH] Image must expose its attachment for metadata access through ->attachment->meta-> --- src/Field/Image.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Field/Image.php b/src/Field/Image.php index 5bca7b1..d5f1acd 100644 --- a/src/Field/Image.php +++ b/src/Field/Image.php @@ -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;