[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
Sat Feb 8 01:39:36 UTC 2014


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

Comment (by ethitter):

 Replying to [comment:5 ethitter]:

 As I've thought about this more, I like the separation provided by
 splitting the manipulation from the checks for the need for manipulation.
 Given the relative complexity of the `sort` handling compared to the
 `join` and `where` cases, the approach reflected in
 [attachment:26937.4.patch] seems better.

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


More information about the wp-trac mailing list