Skip to content

Commit

Permalink
Image must expose its attachment for metadata access through ->attach…
Browse files Browse the repository at this point in the history
…ment->meta->
  • Loading branch information
jakobbuis committed Apr 26, 2017
1 parent abaa46d commit f2116dd
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 f2116dd

Please sign in to comment.