WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#9902 accepted enhancement

Adding an "exclude" parameter to "wp_list_authors()"

Reported by: ramiy Owned by: ericmann
Priority: normal Milestone: Future Release
Component: Template Version: 2.7.1
Severity: normal Keywords: has-patch needs-testing gsoc
Cc: r_a_m_i@…, eric@…, mikeschinkel@…, wojtek.szkutnik@…

Description

wp_list_categories() has an "exclude" parameter.

wp_list_pages() has an "exclude" and "exclude_tree" parameters.

wp_list_bookmarks() has an "exclude" and "exclude_category" parameters.

And only wp_list_authors() has no "exclude" parameter. Although it allows template developers to "exclude_admin", but this is a Boolean parameter, so we can't use it to exclude other authors.

This enhancement is not a critical one, but adding this feature will give theme developers more tools to control over the presented content.

Attachments (2)

9902.diff (1.8 KB) - added by ericmann 3 years ago.
Adds "exclude" parameter to wp_list_authors() function. Accepts comma separated list of author IDs for exclusion.
9902.2.diff (1.6 KB) - added by wojtek.szkutnik 3 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Denis-de-Bernardy4 years ago

  • Keywords needs-patch added
  • Milestone changed from 2.9 to Future Release

ericmann3 years ago

Adds "exclude" parameter to wp_list_authors() function. Accepts comma separated list of author IDs for exclusion.

comment:2 ericmann3 years ago

  • Cc eric@… added
  • Keywords has_patch needs_testing added; needs-patch removed
  • Owner set to ericmann
  • Status changed from new to accepted

comment:3 mikeschinkel3 years ago

  • Cc mikeschinkel@… added

comment:4 ramiy3 years ago

the patch looks good.

comment:5 wojtek.szkutnik3 years ago

  • Cc wojtek.szkutnik@… added
  • Keywords has-patch needs-testing gsoc added; has_patch needs_testing exclude wp_list_authors parameters functions removed

Rewrote the patch due to code changes

wojtek.szkutnik3 years ago

Note: See TracTickets for help on using tickets.