Index: /trunk/wp-includes/user.php
===================================================================
--- /trunk/wp-includes/user.php (revision 16915)
+++ /trunk/wp-includes/user.php (revision 16916)
@@ -413,5 +413,5 @@
if ( in_array( $qv['orderby'], array('email', 'url', 'registered') ) ) {
$orderby = 'user_' . $qv['orderby'];
- } elseif ( 'name' == $qv['orderby'] ) {
+ } elseif ( 'name' == $qv['orderby'] || 'display_name' == $qv['orderby'] ) {
$orderby = 'display_name';
} elseif ( 'post_count' == $qv['orderby'] ) {
@@ -929,13 +929,11 @@
*
* - show_option_all - Text to show all and whether HTML option exists.
- * - show_option_none - Text for show none and whether HTML option exists.
- *
- * - orderby - SQL order by clause for what order the users appear. Default is
- * 'display_name'.
+ * - show_option_none - Text for show none and whether HTML option exists.
+ * - orderby - SQL order by clause for what order the users appear. Default is 'display_name'.
* - order - Default is 'ASC'. Can also be 'DESC'.
* - include - User IDs to include.
* - exclude - User IDs to exclude.
* - multi - Default is 'false'. Whether to skip the ID attribute on the 'select' element. A 'true' value is overridden when id argument is set.
- * - show - Default is 'display_name'. User table column to display. If the selected item is empty then the user_login will be displayed in parentesis
+ * - show - Default is 'display_name'. User table column to display. If the selected item is empty then the user_login will be displayed in parentheses
* - echo - Default is '1'. Whether to display or retrieve content.
* - selected - Which User ID is selected.
@@ -968,5 +966,5 @@
extract( $r, EXTR_SKIP );
- $users = get_users( wp_array_slice_assoc( $args, array( 'blog_id', 'include', 'exclude', 'orderby', 'order' ) ) );
+ $users = get_users( wp_array_slice_assoc( $r, array( 'blog_id', 'include', 'exclude', 'orderby', 'order' ) ) );
$output = '';