WordPress.org

Plugin Directory

Changeset 549664 for feedwordpress


Ignore:
Timestamp:
05/28/12 06:01:09 (5 years ago)
Author:
radgeek
Message:

SyndicatedPost / update_hash - change basis for tracking updates to items. Hopefully should reduce the number of unnecessary revisions inserted over non-visible 'changes' on feed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • feedwordpress/trunk/syndicatedpost.class.php

    r549660 r549664  
    759759 
    760760    function update_hash ($hashed = true) { 
    761         $hash = $this->item; 
     761        // Basis for tracking possible changes to item. 
     762        $hash = array( 
     763            "title" => $this->entry->get_title(), 
     764            "link" => $this->permalink(), 
     765            "content" => $this->content(), 
     766            "excerpt" => $this->excerpt(), 
     767        ); 
    762768         
    763769        if ($hashed) : 
     
    12891295                        .implode(", ", array_map(array('FeedWordPress', 'val'), $seen)) 
    12901296                        .'}. Basis: ' 
    1291                         .FeedWordPress::val(array_keys($this->update_hash(false))); 
     1297                        .FeedWordPress::val($this->update_hash(false)); 
    12921298                    endif; 
    12931299                endif; 
Note: See TracChangeset for help on using the changeset viewer.