[wp-trac] [WordPress Trac] #16812: Taxonomy queries without joins ignore order by

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 9 23:01:30 UTC 2011


#16812: Taxonomy queries without joins ignore order by
--------------------------------+-----------------------------
 Reporter:  Chad Killingsworth  |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Query               |    Version:  3.1
 Severity:  normal              |   Keywords:  has-patch
--------------------------------+-----------------------------
 Using a category exclusion term on a query causes the posts to be ordered
 ascending. Example

 http://site/feed/?cat=-1

 I was able to work around the problem by not including a GROUP BY clause
 when $join variable is empty. I've attached the patch but I'm not sure
 this is the best solution.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16812>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list