mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
The age filter range fix
This commit is contained in:
@@ -821,7 +821,8 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
MAX( meta_value ) as max_meta,
|
||||
COUNT( DISTINCT meta_value ) as amount
|
||||
FROM {$wpdb->usermeta}
|
||||
WHERE meta_key='birth_date'",
|
||||
WHERE meta_key='birth_date'
|
||||
AND meta_value != '';",
|
||||
ARRAY_A );
|
||||
|
||||
if ( empty( $meta ) || ! isset( $meta['amount'] ) || $meta['amount'] === 1 ) {
|
||||
|
||||
Reference in New Issue
Block a user