[wp-trac] [WordPress Trac] #47777: "get_lastpostmodified" does not seem to return the intended value when using custom post types
WordPress Trac
noreply at wordpress.org
Mon Jul 27 02:17:01 UTC 2020
#47777: "get_lastpostmodified" does not seem to return the intended value when
using custom post types
--------------------------------------+-----------------------------
Reporter: mikaumoto | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Posts, Post Types | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"48631" 48631]:
{{{
#!CommitTicketReference repository="" revision="48631"
Posts, Post Types: Pass the post type to `get_lastpostdate()` in
`get_lastpostmodified()`.
This ensures that the correct values are being compared when retrieving
the result for custom post types.
Additionally, pass the `$post_type` parameter to `get_lastpostdate` and
`get_lastpostmodified` filters.
Props mikaumoto, munyagu, donmhico, johnbillion, SergeyBiryukov.
Fixes #47777.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47777#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list