Forums

bug in query.php not allowing exclude multiple authors (2 posts)

  1. dror_me
    Member
    Posted 5 years ago #

    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

  2. lacohido
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.