WordPress.org

Plugin Directory

Changeset 431210 for feedwordpress


Ignore:
Timestamp:
08/31/11 12:16:44 (6 years ago)
Author:
radgeek
Message:

If we are going to let folks filter the GUID then the filtering should actually have some effect, yes?

Location:
feedwordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • feedwordpress/trunk/feedwordpress.php

    r417801 r431210  
    44Plugin URI: http://feedwordpress.radgeek.com/ 
    55Description: simple and flexible Atom/RSS syndication for WordPress 
    6 Version: 2011.0731 
     6Version: 2011.0831 
    77Author: Charles Johnson 
    88Author URI: http://radgeek.com/ 
     
    1212/** 
    1313 * @package FeedWordPress 
    14  * @version 2011.0731 
     14 * @version 2011.0831 
    1515 */ 
    1616 
     
    3535# -- Don't change these unless you know what you're doing... 
    3636 
    37 define ('FEEDWORDPRESS_VERSION', '2011.0731'); 
     37define ('FEEDWORDPRESS_VERSION', '2011.0831'); 
    3838define ('FEEDWORDPRESS_AUTHOR_CONTACT', 'http://radgeek.com/contact'); 
    3939 
  • feedwordpress/trunk/syndicatedpost.class.php

    r405310 r431210  
    1111 * who make use of feed data in PHP add-ons and filters. 
    1212 * 
    13  * @version 2011.0601 
     13 * @version 2011.0831 
    1414 */ 
    1515class SyndicatedPost { 
     
    12401240         
    12411241        if (is_null($this->_freshness)) : // Not yet checked and cached. 
    1242             $guid = $wpdb->escape($this->guid()); 
     1242            $guid = $this->post['guid']; 
     1243            $eguid = $wpdb->escape($this->post['guid']); 
    12431244 
    12441245            $q = new WP_Query(array( 
    12451246                'fields' => '_synfresh', // id, guid, post_modified_gmt 
    12461247                'ignore_sticky_posts' => true, 
    1247                 'guid' => $this->guid(), 
     1248                'guid' => $guid, 
    12481249            )); 
    12491250             
     
    12561257             
    12571258            if (is_null($old_post)) : // No post with this guid 
    1258                 FeedWordPress::diagnostic('feed_items:freshness', 'Item ['.$this->guid().'] "'.$this->entry->get_title().'" is a NEW POST.'); 
     1259                FeedWordPress::diagnostic('feed_items:freshness', 'Item ['.$guid.'] "'.$this->entry->get_title().'" is a NEW POST.'); 
    12591260                $this->_wp_id = NULL; 
    12601261                $this->_freshness = 2; // New content 
     
    12941295 
    12951296                if ($updated) : 
    1296                     FeedWordPress::diagnostic('feed_items:freshness', 'Item ['.$this->guid().'] "'.$this->entry->get_title().'" is an update of an existing post.'); 
     1297                    FeedWordPress::diagnostic('feed_items:freshness', 'Item ['.$guid.'] "'.$this->entry->get_title().'" is an update of an existing post.'); 
    12971298                    $this->_freshness = 1; // Updated content 
    12981299                    $this->_wp_id = $old_post->ID; 
     
    13051306                    ); 
    13061307                else : 
    1307                     FeedWordPress::diagnostic('feed_items:freshness', 'Item ['.$this->guid().'] "'.$this->entry->get_title().'" is a duplicate of an existing post.'); 
     1308                    FeedWordPress::diagnostic('feed_items:freshness', 'Item ['.$guid.'] "'.$this->entry->get_title().'" is a duplicate of an existing post.'); 
    13081309                    $this->_freshness = 0; // Same old, same old 
    13091310                    $this->_wp_id = $old_post->ID; 
Note: See TracChangeset for help on using the changeset viewer.