Opened 17 years ago
Closed 17 years ago
#9645 closed defect (bug) (fixed)
Misplaced close parentheses in query.php
| Reported by: | coffee2code | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | General | Version: | 2.8 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Attachments (2)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Slight refactoring of code around the area affected by the original patch (this includes original patch).