iw
Peter Molnar hello@petermolnar.eu
Sun, 19 Jul 2015 13:09:10 +0100
2 files changed,
16 insertions(+),
7 deletions(-)
M
blogroll2email.php
→
blogroll2email.php
@@ -4,7 +4,7 @@ /*
Plugin Name: blogroll2email Plugin URI: https://github.com/petermolnar/blogroll2email Description: Pulls RSS, Atom and microformats entries from blogroll links and sends them as email -Version: 0.1 +Version: 0.2 Author: Peter Molnar <hello@petermolnar.eu> Author URI: http://petermolnar.eu/ License: GPLv3@@ -179,7 +179,7 @@ * @param string $content
* * */ - protected function send ( $to, $link, $title, $fromname, $sourceurl, $content, $dry = false ) { + protected function send ( $to, $link, $title, $fromname, $sourceurl, $content, $time, $dry = false ) { // enable HTML mail add_filter( 'wp_mail_content_type', array( $this, 'set_html_content_type') );@@ -198,6 +198,7 @@ 'X-RSS-URL: ' . $link,
'X-RSS-Feed: ' . $sourceurl, 'User-Agent: blogroll2email', 'From: "' . $fromname .'" <'. static::schedule . '@'. $sitedomain .'>', + 'Date: ' . date( 'r', $time ), ); self::debug('sending ' . $title . ' to ' . $to );@@ -244,10 +245,10 @@ $feed->force_feed(true);
// optimization $feed->enable_order_by_date(true); - $feed->remove_div(false); + $feed->remove_div(true); $feed->strip_comments(true); $feed->strip_htmltags(false); - $feed->strip_attributes(false); + $feed->strip_attributes(true); $feed->set_image_handler(false); $feed->init();@@ -291,7 +292,8 @@ $item->get_link(),
$item->get_title(), $from, $url, - $item->get_content() + $item->get_content(), + $date )) { if ( $date > $last_updated_ ) $last_updated_ = $date;@@ -406,7 +408,8 @@ $item['url'],
$item['title'], $bookmark->link_name, $item['url'], - $item['content'] + $item['content'], + $time )) { if ( $time > $last_updated_ ) $last_updated_ = $time;
M
readme.txt
→
readme.txt
@@ -4,7 +4,7 @@ Donate link:
Tags: blogroll, links, rss, email, reader Requires at least: 3.0 Tested up to: 4.2.2 -Stable tag: 0.1 +Stable tag: 0.2 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html@@ -45,6 +45,12 @@
* every A. indicates BIG changes. * every .B version indicates new features. * every ..C indicates bugfixes for A.B version. + += 0.2 = +*2015-07-16* + +* fine tuning simplepie options + = 0.1 = *2015-07-16*