[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
Wed Jan 31 20:33:05 UTC 2018


#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:  Future Release
Component:  Query        |     Version:  3.7
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------------

Comment (by LindsayBSC):

 +1 to @mark-k's comment re: considering deprecating the functions and
 making a newer, better way to get adjacent posts. The ability to override
 and "co-opt" the  adjacent post functionality w/ our own queries is
 extraordinarily wonky in the current situation IMHO.


 Replying to [comment:59 mark-k]:
 > ok, if it is not practical to change how the code works why not
 deprecate the functions and write new ones with the same parameters just
 implemented with wp_query while dropping the old filters.
 > Performance is important but having a better code base is IMHO as
 important

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


More information about the wp-trac mailing list