mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 13:13:33 +09:00
- User queries performance fix;
This commit is contained in:
@@ -296,7 +296,7 @@ if ( ! class_exists( 'um\core\rest\API' ) ) {
|
||||
$count = absint( $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}users" ) );
|
||||
$response['stats']['total_users'] = $count;
|
||||
|
||||
$pending = UM()->user()->get_pending_users_count();
|
||||
$pending = UM()->query()->get_pending_users_count();
|
||||
$response['stats']['pending_users'] = absint( $pending );
|
||||
|
||||
/**
|
||||
@@ -612,4 +612,4 @@ if ( ! class_exists( 'um\core\rest\API' ) ) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user