Ticket #30064: 30064_gowp1.diff
File 30064_gowp1.diff, 775 bytes (added by , 10 years ago) |
---|
-
wp-includes/user.php
621 621 $orderby = 'ID'; 622 622 } elseif ( 'meta_value' == $qv['orderby'] ) { 623 623 $orderby = "$wpdb->usermeta.meta_value"; 624 } elseif ( 'include' == $qv['orderby'] && ! empty( $qv['include'] ) ) { 625 $include = implode( ",", $qv['include'] ); 626 $orderby = "FIELD( {$wpdb->users}.ID, {$include} )"; 624 627 } else { 625 628 $orderby = 'user_login'; 626 629 }