[wp-trac] [WordPress Trac] #15959: get_adjacent_post() can generate invalid SQL

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 16 15:10:55 UTC 2012


#15959: get_adjacent_post() can generate invalid SQL
-------------------------------------+------------------
 Reporter:  dd32                     |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.5
Component:  Query                    |     Version:  3.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------
Changes (by batmoo):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 Patch should catch scenarios where category taxonomy doesn't exist,
 post_type doesn't support the category taxonomy, and if post doesn't have
 any categories. We should return empty in all of these cases as we should
 honour the {{{$in_same_cat}}} request.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15959#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list