Permalink
Browse files

Enclosures / Allow MediaRSS packages and other enclosures recognized …

…by SimplePie to be pulled into gallery.
  • Loading branch information...
1 parent 522487f commit 5f8f0033e06e399da67416b520caca45a7c4c2a2 Charles Johnson committed Nov 28, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 fwp-sic-em/SicEm.php
@@ -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;

0 comments on commit 5f8f003

Please sign in to comment.