[wp-trac] [WordPress Trac] #9645: Misplaced close parentheses in query.php

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 25 06:45:05 GMT 2009


#9645: Misplaced close parentheses in query.php
--------------------------+-------------------------------------------------
 Reporter:  coffee2code   |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:  2.8      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 There are two places in `wp-includes/query.php` where we have this:

 `if ( is_array($ids) && count($ids > 0) ) {`

 The close parenthesis for `count()` is misplaced and we probably really
 want:

 `if ( is_array($ids) && count($ids) > 0 ) {`

 These are part of the query handling for `category__not_in` and
 `tag__not_in`.

 Patch attached.

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


More information about the wp-trac mailing list