Permalink
Browse files

Use with SyndicatedPost/FeedWordPressLocalPost methods available in l…

…atest FeedWordPress.
  • Loading branch information...
radgeek committed Jul 8, 2014
1 parent 4d0213c commit 65d35a58f680be6f510d2228748ea40c444102f3
Showing with 5 additions and 5 deletions.
  1. +5 −5 fwp-keyword-filters.php
View
@@ -3,7 +3,7 @@
Plugin Name: FWP+: Keyword Filters
Plugin URI: http://feedwordpress.radgeek.com/
Description: simple and flexible keyword or category filtering for FeedWordPress syndicated posts
-Version: 2012.0601
+Version: 2014.0707
Author: Charles Johnson
Author URI: http://radgeek.com/
License: GPL
@@ -77,8 +77,8 @@ function match ($patterns, $mFields) {
function fields_text () {
if (is_null($this->texts)) :
$this->texts = array();
- $this->texts[] = $this->post->entry->get_title();
- $this->texts[] = strip_tags($this->post->entry->get_title());
+ $this->texts[] = $this->post->title();
+ $this->texts[] = strip_tags($this->post->title());
$this->texts[] = $this->post->content();
$this->texts[] = strip_tags($this->post->content());
endif;
@@ -88,7 +88,7 @@ function fields_text () {
function fields_category () {
if (is_null($this->cats)) :
$this->cats = array();
- $post_cats = $this->post->entry->get_categories();
+ $post_cats = $this->post->get_categories();
// If we have any categories, then loop through them to get both
// label and term.
@@ -148,7 +148,7 @@ function diagnostics ($diag, $page) {
$diag['Syndicated Post Details']['keyword_filters:match'] = 'when posts are matched by keyword and actions are applied';
return $diag;
}
-
+
function syndicated_entry ($entry, $obj) {
$mp = new fwpkfMatchablePost($obj);

0 comments on commit 65d35a5

Please sign in to comment.