[wp-trac] [WordPress Trac] #17455: Add $post_type argument to get_lastpostdate/get_lastpostmodified/_get_last_post_time
WordPress Trac
noreply at wordpress.org
Sat Sep 5 15:59:07 UTC 2015
#17455: Add $post_type argument to
get_lastpostdate/get_lastpostmodified/_get_last_post_time
----------------------------------------+-----------------------------
Reporter: duck_ | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
While we're at it, the `$timezone` description should be synchronized
between `get_lastpostdate()` and `_get_last_post_time()`, and extra ` or
'server'.` should be removed from `get_lastpostmodified()`.
It would probably make sense to move the extended description from
`get_lastpostmodified()` to `get_lastpostdate()` (since it comes first),
and then reference it in `get_lastpostmodified()` and
`_get_last_post_time()`.
Leaving a note here to create a separate ticket or handle this in a
separate commit.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17455#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list