Coding Standards: Use strict comparison in wp-includes/class-wp-user-query.php.
Follow-up to [31669], [47808]. Props aristath, poena, afercia, SergeyBiryukov. See #57839. Built from https://develop.svn.wordpress.org/trunk@56169 git-svn-id: http://core.svn.wordpress.org/trunk@55681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1013,7 +1013,7 @@ class WP_User_Query {
|
||||
$_orderby = 'post_count';
|
||||
} elseif ( 'ID' === $orderby || 'id' === $orderby ) {
|
||||
$_orderby = 'ID';
|
||||
} elseif ( 'meta_value' === $orderby || $this->get( 'meta_key' ) == $orderby ) {
|
||||
} elseif ( 'meta_value' === $orderby || $this->get( 'meta_key' ) === $orderby ) {
|
||||
$_orderby = "$wpdb->usermeta.meta_value";
|
||||
} elseif ( 'meta_value_num' === $orderby ) {
|
||||
$_orderby = "$wpdb->usermeta.meta_value+0";
|
||||
|
||||
Reference in New Issue
Block a user