get_lastpostmodified needs a hook.
|Reported by:||cavemonkey50||Owned by:||rob1n|
Working on the Tumblefeed plugin, I recently ran into a problem. I should first take a step back and explain what Tumblefeed is doing.
The Tumblefeed plugin is designed to create a better feed for WordPress tumblelogs. Instead of bombarding readers with feed updates throughout the day, the plugin prevents the posts for the day from appearing in the feed until midnight. At midnight they're all posted as one item.
Certain feed readers (namely Feedburner) are not updating the feed due to the <pubDate> value not changing. The <pubDate> value is linked to get_lastpostmodified. Since the Tumblefeed plugin is not really modifying any posts (thus changing the get_lastpostmodified value), the date stays the same even though the feed has been updated.
To solve the problem, I feel a filter hook should be added to get_lastpostmodified. The filter would allow me alter the value without making any drastic and unneeded database changes.
As mentioned by Matt himself, WordPress tumblelogs are starting to take off and would certainly benefit from this change. Right now I have logged around 75 downloads of the Tumblefeed plugin, so there is demand for this type of change.
While I understand under normal conditions a plugin should have no reason to filter this value, this is an exception I feel is worthwhile adding a filter for.
Change History (6)
- Owner changed from anonymous to rob1n
- Status changed from new to assigned