[wp-trac] [WordPress Trac] #34205: Add a filter to short-circuit get_lastpostmodified()

WordPress Trac noreply at wordpress.org
Thu Oct 8 05:57:00 UTC 2015


#34205: Add a filter to short-circuit get_lastpostmodified()
-------------------------------+--------------------------
 Reporter:  pento              |       Owner:  pento
     Type:  enhancement        |      Status:  closed
 Priority:  normal             |   Milestone:  4.4
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  fixed
 Keywords:                     |     Focuses:  performance
-------------------------------+--------------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34935"]:
 {{{
 #!CommitTicketReference repository="" revision="34935"
 Posts: Add the `pre_get_lastpostmodified` filter to
 `get_lastpostmodified()`.

 This allows `get_lastpostmodified()` to be short circuited when the site
 wants to avoid running the occasionally slow queries in
 `_get_last_post_time()`.

 Fixes #34205.
 }}}

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


More information about the wp-trac mailing list