[wp-trac] [WordPress Trac] #4575: Add functions to return the last-modified timestamp of a category/tag
WordPress Trac
noreply at wordpress.org
Thu Sep 21 18:53:37 UTC 2017
#4575: Add functions to return the last-modified timestamp of a category/tag
-------------------------------------------------+-------------------------
Reporter: delusions | Owner:
Type: enhancement | stevenkword
Priority: normal | Status: assigned
Component: Feeds | Milestone: 4.9
Severity: normal | Version: 2.2.1
Keywords: has-patch needs-testing needs-unit- | Resolution:
tests | Focuses: template
-------------------------------------------------+-------------------------
Comment (by ryanshoover):
I've updated the patch to include a few enhancements / cleanups
* Adds a filter at the end to allow modifying the last modified date
* Simplifies the logic for determining the last modified comment
* Renames the function's variables for clarity
Note that the new filter still leaves this as a breaking change from the
current functionality. I don't see a clean way to maintain the other
function's filters in this new function. `get_lastpostmodified()` is used
by both `feed-rss.php` and `class-wp.php`. Any use of the original
`get_lastpostmodified()` filters in this function risks overrunning
modifications to `class-wp.php`.
Any plugin author that previously used the `get_lastpostmodified` filter
needs to update to use the `get_last_build_date` filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/4575#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list