[wp-trac] [WordPress Trac] #25629: Taxonomy get_sql() generate incorrect query

WordPress Trac noreply at wordpress.org
Fri Oct 18 16:55:17 UTC 2013


#25629: Taxonomy get_sql() generate incorrect query
------------------------------------------------+--------------------------
 Reporter:  xavismeh                            |       Owner:
     Type:  defect (bug)                        |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Taxonomy                            |  Review
 Severity:  normal                              |     Version:  3.5.1
 Keywords:  needs-unit-tests reporter-feedback  |  Resolution:
------------------------------------------------+--------------------------
Changes (by nacin):

 * keywords:  has-patch dev-feedback needs-testing needs-unit-tests =>
     needs-unit-tests reporter-feedback
 * severity:  critical => normal


Comment:

 There's no evidence there is a bug here.

 0 = 1 is deliberately added when the query should not return any results.
 That's what self:$no_results contains. For whatever reason, WordPress has
 determined that the taxonomy query you are running should not return any
 results. It is possible that the bug is on your end.

 It's certainly possible that your query parameters are valid, and should
 return results. But you'll need to provide more information, like what you
 are passing to WP_Query, whether you can reproduce this without plugins
 enabled, etc.

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


More information about the wp-trac mailing list