Use post modified date for items in all syndicated feeds
|Reported by:||lapcat||Owned by:|
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?