all repos — blogroll2email @ ceebef9805c814cb7d3152c60c57e48f2aed5816

larger images for flickr
Peter Molnar hello@petermolnar.eu
Wed, 09 Dec 2015 09:50:30 +0000
commit

ceebef9805c814cb7d3152c60c57e48f2aed5816

parent

a7d852dd91303bcf5755614c7ed686629a5a7ec7

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M blogroll2email.phpblogroll2email.php

@@ -293,16 +293,17 @@

$content = $item->get_content(); $matches = array(); - preg_match_all('/farm[0-9]\.staticflickr\.com\/[0-9]+\/[0-9]+_[0-9a-zA-Z]+_m\.jpg/s', $content, $matches); + preg_match_all('/farm[0-9]\.staticflickr\.com\/[0-9]+\/([0-9]+_[0-9a-zA-Z]+_m\.jpg)/s', $content, $matches); if ( !empty ( $matches[0] ) ) { foreach ( $matches[0] as $to_replace ) { $clean = str_replace('_m.jpg', '_c.jpg', $to_replace); $content = str_replace ( $to_replace, $clean, $content ); } + $content = preg_replace("/(width|height)=\"(.*?)\" ?/is", '', $content); } - //$content = apply_filters('blogroll2email_content', $content); + $content = apply_filters('blogroll2email_message', $content); if ( $this->send ( $owner->user_email,