[wp-trac] [WordPress Trac] #7473: Use post modified date for items in all syndicated feeds

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 6 17:57:46 GMT 2008


#7473: Use post modified date for items in all syndicated feeds
-------------------------+--------------------------------------------------
 Reporter:  lapcat       |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.7      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 This is a followup to [http://trac.wordpress.org/ticket/4816]. Atom feeds
 items, which have two date fields, "updated" and "published", were handled
 by ticket 4816. Unfortunately, RSS 1.0 and RSS 2.0 feed items only have
 one date field ("dc:date" in the former, "pubDate" in the latter). This
 ticket is to request that the post modified date be used rather than the
 post date in the date fields of RSS 1.0 and RSS 2.0 items. With this
 change, syndicated feed readers would be able to detect and handle posts
 that have been updated.

 I believe that this would require changing "post_date_gmt" to
 "post_modified_gmt" in the "dc:date" field in the file "wp-includes/feed-
 rdf.php" and changing "get_post_time" to "get_post_modified_time" in the
 "pubDate" field in the file "wp-includes/feed-rss2.php". I've been running
 my own WordPress installation with these modifications for well over a
 year without any problems.

 The one thing I'm not sure about is what database query WordPress uses to
 select the posts that will appear in the feeds. Does it select them based
 on post date or based on past modified date?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7473>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list