custer fixed error in user id with email
This commit is contained in:
@@ -52,10 +52,6 @@ function format_user_info($query, $user_id, $if_empty = '') {
|
||||
$output_date_format = Custer::USER_INFO_DATE_FORMAT;
|
||||
$special_queries = Custer::QUERIES;
|
||||
|
||||
$current_user = get_user_by('id', $user_id);
|
||||
if (empty($current_user)) {
|
||||
return;
|
||||
}
|
||||
$is_acf = false;
|
||||
|
||||
|
||||
@@ -71,6 +67,15 @@ function format_user_info($query, $user_id, $if_empty = '') {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* for the rest, we need the user
|
||||
*
|
||||
*/
|
||||
$current_user = get_user_by('id', $user_id);
|
||||
if (empty($current_user)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* check if it's an acf field
|
||||
|
||||
Reference in New Issue
Block a user