Created
June 10, 2013 06:12
-
-
Save CBeloch/5746831 to your computer and use it in GitHub Desktop.
Fix for the following Wordpress plugin: http://wordpress.org/plugins/wp-rss-images/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($enclosure){ // this is Line 78 | |
list($width, $height, $type, $attr) = getimagesize($url); | |
echo '<enclosure url="' . $image_url . '" length="' . $filesize . '" type="'.image_type_to_mime_type($type).'" />'; | |
} | |
if($media){ | |
list($width, $height, $type, $attr) = getimagesize($url); | |
echo '<media:content url="'.$image_url.'" width="'.$width.'" height="'.$height.'" medium="image" type="'.image_type_to_mime_type($type).'" />'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment