Merge branch 'release/0.18.3' of https://github.com/tainacan/tainacan into release/0.18.3

This commit is contained in:
mateuswetah 2021-07-09 09:44:28 -03:00
commit bb2153bbc0
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class JSON_flat extends Exposer {
'id' => $item['id'],
'data' => $item_data,
'url' => $item['url'],
'thumbnail' => isset($item['thumbnail']) ? $item['thumbnail'] : false,
'thumbnail' => isset($item['_thumbnail_id']) ? wp_get_attachment_image_src($item['_thumbnail_id'], 'full') : false,
'creation_date' => isset($item['creation_date']) ? $item['creation_date'] : '',
'modification_date' => isset($item['modification_date']) ? $item['modification_date'] : ''
];