Forums

[closed] Exclude Authors (2 posts)

  1. gingerhendrix
    Member
    Posted 6 months ago #

    Hi,

    I've just checked out 3.3 beta 2, and much to my dismay my pet bug looks like it is still not closed.

    http://core.trac.wordpress.org/ticket/16854

    In summary, specifying multiple authors to exclude in custom queries does not work.
    The offending line is 2282 of query.php $q['author'] =(string)absint($q['author'][1]);

    Unfortunately I have a site that I have to manually patch before I upgrade each time as it relies on this behavior being fixed.

    Is there any chance of getting this fixed in 3.3? What can I do to help (even if it is for a future version)? There is a patch attached to the bug, but its doubtless bitrotted a little. I'd be more than happy to work up a new patch. There's also the related enhancement of allowing arrays for this query parameter (or new paramters author_in and author_not_in) which would be consistent with the rest of the api.

    Also the documentation includes an example which doesn't work.

    http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    Try Boone's - http://core.trac.wordpress.org/attachment/ticket/16854/16854.patch

    But you should put further comments to this issue in that trac ticket, NOT here. :)

Topic Closed

This topic has been closed to new replies.

About this Topic