add files inc
This commit is contained in:
@@ -47,11 +47,8 @@ add_action('rest_api_init', function() {
|
||||
'photo' => $photo,
|
||||
'photo_sizes' => $photo_sizes,
|
||||
|
||||
// Оставляем gravatar как запасной вариант, если фото нет
|
||||
'gravatar' => get_avatar_url($coauthor->user_email, ['size' => 192]),
|
||||
|
||||
// Для обратной совместимости
|
||||
'avatar' => $photo ?: get_avatar_url($coauthor->user_email, ['size' => 192]),
|
||||
'avatar' => $photo ?: '',
|
||||
|
||||
'url' => get_author_posts_url($coauthor->ID, $coauthor->user_nicename),
|
||||
'type' => $coauthor->type ?? 'guest-author'
|
||||
|
||||
Reference in New Issue
Block a user