• hi,
    a bug i found in query.php that not allowing exclude multiple authors when calling query_posts.

    when parsing the author element it only take the first author in the list and exclude it.
    author=-21,22,23 –> only exclude 21

    i track down it to this line
    $q['author'] = ''.intval($q['author'][1]);

    change it to this
    $q['author'] = $q['author'][1];

    i think it need fixing?

    all the best,
    Dror

Viewing 1 replies (of 1 total)
  • lacohido

    (@lacohido)

    where in wordpress do you find this?:
    `$q[‘author’] = $q[‘author’][1];’

Viewing 1 replies (of 1 total)

The topic ‘bug in query.php not allowing exclude multiple authors’ is closed to new replies.