[wp-trac] [WordPress Trac] #3943: emptiness check fails in query.php
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 9 16:17:06 GMT 2007
#3943: emptiness check fails in query.php
------------------------+---------------------------------------------------
Reporter: nbachiyski | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2
Component: General | Version:
Severity: normal | Keywords: has-patch
------------------------+---------------------------------------------------
''''Problem'''':
If an array is passed to {{{wp-includes/query.php}}}, the {{{$query}}}
variable is never empty, because the array is no empty. However there are
a lot of {{{empty($query)}}} check further in that function.
'''Solution'''':
We construct the query out of the non-empty keys of the array.
--
Ticket URL: <http://trac.wordpress.org/ticket/3943>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list