diff options
Diffstat (limited to 'wp-includes/author-template.php')
| -rw-r--r-- | wp-includes/author-template.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index 6006cf3..cc67faf 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -175,14 +175,15 @@ function get_author_name( $auth_id ) { function wp_list_authors($args = '') { global $wpdb; - $defaults = array( - 'optioncount' => false, 'exclude_admin' => true, - 'show_fullname' => false, 'hide_empty' => true, - 'feed' => '', 'feed_image' => '' - ); - - $r = wp_parse_args( $args, $defaults ); - extract($r); + if ( is_array($args) ) + $r = &$args; + else + parse_str($args, $r); + + $defaults = array('optioncount' => false, 'exclude_admin' => true, 'show_fullname' => false, 'hide_empty' => true, + 'feed' => '', 'feed_image' => ''); + $r = array_merge($defaults, $r); + extract($r, EXTR_SKIP); // TODO: Move select to get_authors(). $authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_login <> 'admin' " : '') . "ORDER BY display_name"); |
