Change RSS output

This commit is contained in:
Robin Cornett
2015-05-23 15:42:47 -04:00
parent 9fcd6c7f21
commit 2e220abe31
@@ -50,7 +50,7 @@ class Display_Featured_Image_Genesis_RSS {
public function add_image_to_feed( $content ) {
// if the post doesn't have a thumbnail, we're done here
if ( ! has_post_thumbnail() ) {
if ( ! has_post_thumbnail() && ! is_feed() ) {
return $content;
}
@@ -99,8 +99,8 @@ class Display_Featured_Image_Genesis_RSS {
}
// whew. build the image!
$image = get_the_post_thumbnail( get_the_ID(), $size, array( 'align' => $align, 'style' => $style, 'class' => $class ) );
$image = apply_filters( 'display_featured_image_genesis_modify_rss_image', wp_kses_post( $image ) );
$image = get_the_post_thumbnail( get_the_ID(), $size, array( 'align' => $align, 'style' => $style, 'class' => $class ) );
$image = apply_filters( 'display_featured_image_genesis_modify_rss_image', $image );
return $image . $content;