[wp-trac] [WordPress Trac] #26937: get_adjacent_post() should use WP_Query rather than build its own SQL query

WordPress Trac noreply at wordpress.org
Fri Mar 28 20:42:00 UTC 2014


#26937: get_adjacent_post() should use WP_Query rather than build its own SQL query
-------------------------+-----------------------
 Reporter:  ethitter     |       Owner:  nacin
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.9
Component:  Query        |     Version:  3.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------

Comment (by nacin):

 In 3.8 we did two separate queries always. In 3.9 I made it a bit more
 clever by bypassing the query splitting if an external object cache was
 off. See `'split_the_query' => wp_using_ext_object_cache()`. If an object
 cache is on, then it should be two separate queries. That's what I'm
 seeing with APC.

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


More information about the wp-trac mailing list