WordPress.org

Plugin Directory

Changeset 391492 for feedwordpress


Ignore:
Timestamp:
05/31/11 22:11:15 (6 years ago)
Author:
radgeek
Message:

Prevent leading and trailing whitespace from fucking up recognition of existing posts.

Location:
feedwordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • feedwordpress/trunk/readme.txt

    r391399 r391492  
    9696= 2011.0531 = 
    9797 
    98 *   WORDPRSS 3.1.3 COMPATIBILITY: DUPLICATE POSTS ISSUE FIXED. Due to internal 
    99     changes in the way that WordPress handles post guids in the most recent 
    100     release (3.1.3), many users experienced problems with many duplicate posts 
    101     appearing in rapid succession. (Specifically, this would happen with any 
    102     posts using tag: URL guids -- such as all the posts coming from Blogger 
    103     feeds or feeds from other Google services.) This compatibility release of 
    104     FeedWordPress eliminates the issue by working around the new restrictions 
    105     on tag: URLs. 
     98*   WORDPRESS 3.1.3 COMPATIBILITY: DUPLICATE POSTS ISSUE FIXED. Due to 
     99    internal changes in the way that WordPress handles post guids in the 
     100    most recent release (3.1.3), many users experienced problems with many 
     101    duplicate posts appearing in rapid succession. (Specifically, this would 
     102    happen with any posts using tag: URL guids -- such as all the posts 
     103    coming from Blogger feeds or feeds from other Google services.) This 
     104    compatibility release of FeedWordPress eliminates the issue by working 
     105    around the new restrictions on tag: URLs. 
    106106 
    107107*   NEW AND IMPROVED DIAGNOSTICS: Syndication --> Diagnostics now contains some 
  • feedwordpress/trunk/syndicatedpost.class.php

    r391387 r391492  
    779779     
    780780    /*static*/ function normalize_guid ($guid) { 
     781        $guid = trim($guid); 
    781782        if (preg_match('/^[0-9a-z]{32}$/i', $guid)) : // MD5 
    782             $guid = SyndicatedPost::normalize_Guid_prefix().strtolower($guid); 
     783            $guid = SyndicatedPost::normalize_guid_prefix().strtolower($guid); 
    783784        elseif (strlen(esc_url($guid)) == 0) : 
    784785            $guid = SyndicatedPost::normalize_guid_prefix().md5($guid); 
    785786        endif; 
    786          
     787        $guid = trim($guid); 
     788 
    787789        return $guid; 
    788790    } /* SyndicatedPost::normalize_guid() */ 
Note: See TracChangeset for help on using the changeset viewer.