[wp-trac] [WordPress Trac] #4575: Add functions to return the last-modified timestamp of a category/tag
WordPress Trac
noreply at wordpress.org
Wed Feb 27 22:29:37 UTC 2019
#4575: Add functions to return the last-modified timestamp of a category/tag
-------------------------------------------------+-------------------------
Reporter: delusions | Owner:
| adamsilverstein
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.2
Component: Feeds | Version: 2.2.1
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses: template
early |
-------------------------------------------------+-------------------------
Comment (by adamsilverstein):
> I will change up the tests a bit, but I am not personally sure it is
required...
@spacedmonkey thank you for checking, I wasn't sure either and was mostly
asking because of past experience sorting strings. i agree, based on how
we store the _gmt fields this should work as expected. my main point was
that converting these strings to timestamps would increase my confidence
that the sorting will always work correctly. additional tests would as
well! if the tests could demonstrate the original point of this ticket:
**that all category feeds don't have the same date**, that would be even
better!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/4575#comment:82>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list