Skip to content

Commit

Permalink
Enclosures / Allow MediaRSS packages and other enclosures recognized …
Browse files Browse the repository at this point in the history
…by SimplePie to be pulled into gallery.
  • Loading branch information
Charles Johnson committed Nov 28, 2012
1 parent 522487f commit 5f8f003
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fwp-sic-em/SicEm.php
Expand Up @@ -366,6 +366,13 @@ function process_post ($data, $post) {
endforeach;
endif;

$enclosures = $post->entry->get_enclosures();
if (is_array($enclosures) and count($enclosures) > 0) :
foreach ($enclosures as $enclosure) :
$data['meta']['_syndicated_image_capture'][] = $enclosure->get_link();
endforeach;
endif;

$thumb_id = $post->link->setting('featured image default', 'featured_image_default', NULL);
if ($thumb_id) :
$data['meta']['_thumbnail_id'] = $thumb_id;
Expand Down

0 comments on commit 5f8f003

Please sign in to comment.