[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
Tue Mar 3 12:29:38 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:  reviewing
 Priority:  normal                    |   Milestone:  5.5
Component:  Posts, Post Types         |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 [attachment:"47777.2.diff"] looks good, however, if we're adding the
 `$post_type` parameter to the `get_lastpostmodified` filter, the same
 should be done for `get_lastpostdate`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47777#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list