Make WordPress Core

Ticket #9902: 9902.3.diff

File 9902.3.diff, 880 bytes (added by patricknami, 11 years ago)

Exposes 'include' and 'exclude' parameters of get_users to wp_list_authors()

  • wp-includes/author-template.php

     
    325325                'optioncount' => false, 'exclude_admin' => true,
    326326                'show_fullname' => false, 'hide_empty' => true,
    327327                'feed' => '', 'feed_image' => '', 'feed_type' => '', 'echo' => true,
    328                 'style' => 'list', 'html' => true
     328                'style' => 'list', 'html' => true, 'exclude' => '', 'include' => ''
    329329        );
    330330
    331331        $args = wp_parse_args( $args, $defaults );
     
    333333
    334334        $return = '';
    335335
    336         $query_args = wp_array_slice_assoc( $args, array( 'orderby', 'order', 'number' ) );
     336        $query_args = wp_array_slice_assoc( $args, array( 'orderby', 'order', 'number', 'exclude', 'include' ) );
    337337        $query_args['fields'] = 'ids';
    338338        $authors = get_users( $query_args );
    339339