Ticket #17179: 17179.patch
File 17179.patch, 714 bytes (added by , 13 years ago) |
---|
-
wp-includes/user.php
432 432 $orderby = $qv['orderby']; 433 433 } elseif ( 'name' == $qv['orderby'] || 'display_name' == $qv['orderby'] ) { 434 434 $orderby = 'display_name'; 435 } elseif( !empty($qv['meta_key']) && 'meta_value' == $qv['orderby'] ) { 436 $orderby = "$wpdb->usermeta.meta_value"; 437 } elseif( !empty($qv['meta_key']) && 'meta_value_num' == $qv['orderby'] ) { 438 $orderby = "$wpdb->usermeta.meta_value+0"; 435 439 } elseif ( 'post_count' == $qv['orderby'] ) { 436 440 // todo: avoid the JOIN 437 441 $where = get_posts_by_author_sql('post');