Opened 3 years ago
Closed 17 months ago
#13278 closed enhancement (duplicate)
query.php, exclude posts by more authors bug
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | aesqe@… |
Description
in latest nightly on lines 2053 - 2054:
$q['author'] = explode('-', $q['author']);
$q['author'] = (string)absint($q['author'][1]);
just removing 'absint' from line 2054 would enable queries like this following one to give expected results (posts where author ids are not 1 or 2):
`query_posts('author=-1,2')`
replacing both lines with something like this:
$q['author'] = str_replace('-', '', $q['author']);
would also allow this input:
`query_posts('author=-1,-2')`
currently, these queries just exclude the author whose ID is first in list.
Change History (3)
- Milestone changed from Awaiting Triage to Future Release
- Type changed from defect (bug) to enhancement
comment:3
SergeyBiryukov — 17 months ago
- Milestone Future Release deleted
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

#16854 has a patch.