[wp-trac] [WordPress Trac] #20604: Empty tax_query returns all posts
WordPress Trac
wp-trac at lists.automattic.com
Thu May 3 00:49:29 UTC 2012
#20604: Empty tax_query returns all posts
--------------------------+------------------------------
Reporter: Ninos Ego | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.3.1
Severity: minor | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by dd32):
I'm not sure I'd call this a bug when you're specifically specifying
tax_query. I also believe it's been covered in a previous ticket.
Simply ignoring the specific query parts if there isn't content doesn't
seem right to me, The above request for example is "I specifically want
posts IN tax1 in the list (none) OR IN tax2 in the list (none)", to
receive a response of "Here's a list of posts that match the rest of your
args, but may not be related to tax1 or tax2 at all" would seem like
buggy behaviour to me.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20604#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list