[wp-trac] [WordPress Trac] #4575: Add functions to return the last-modified timestamp of a category/tag
WordPress Trac
noreply at wordpress.org
Wed Mar 20 20:37:08 UTC 2019
#4575: Add functions to return the last-modified timestamp of a category/tag
-------------------------------------------------+-------------------------
Reporter: delusions | Owner:
| adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.2
Component: Feeds | Version: 2.2.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: template
early |
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"44948" 44948]:
{{{
#!CommitTicketReference repository="" revision="44948"
Feeds: ensure build/update date matches current query.
Displaying the correct build date in feeds is as important today as it was
twelve years ago when this ticket was opened.
Fix an issue where all feeds in WordPress showed the same date for their
last build date (the datapoint is `lastBuildDate`, `updated` or `dc:date`
depending on the feed type).
Introduce a new `get_last_build_date` filter to adjust the date used for
`lastBuildDate`. Developers who previously filtered
`get_lastcommentmodified` to alter feed dates should use this filter
instead.
* `get_last_build_date` extracts the latest post (or comment) in the
current WP_Query object.
* In all feed templates, use `get_last_build_date` vs
`get_lastpostmodified( 'GMT' );`.
Props stevenkword, spacedmonkey, ryanshoover, mauteri, nacin, jorbin,
MikeNGarrett, Denis-de-Bernardy, peaceablewhale.
Fixes #4575.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/4575#comment:87>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list