mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
- fixed sorting by user registered date when custom meta table is enabled;
This commit is contained in:
@@ -900,7 +900,7 @@ if ( ! class_exists( 'um\core\Member_Directory_Meta' ) ) {
|
||||
$order = esc_sql( $order );
|
||||
$order = in_array( strtoupper( $order ), array( 'ASC', 'DESC' ), true ) ? $order : 'ASC';
|
||||
$this->sql_order = " ORDER BY CAST( umm_sort.um_value AS CHAR ) {$order} ";
|
||||
} elseif ( in_array( $sortby, $this->core_search_fields, true ) ) {
|
||||
} elseif ( in_array( $sortby, $this->core_users_fields, true ) ) {
|
||||
$sortby = esc_sql( $sortby );
|
||||
$order = esc_sql( $order );
|
||||
$order = in_array( strtoupper( $order ), array( 'ASC', 'DESC' ), true ) ? $order : 'ASC';
|
||||
|
||||
Reference in New Issue
Block a user