add files inc

This commit is contained in:
Profile Profile
2026-03-09 20:51:08 +03:00
parent 83ca6c638a
commit ed4d79b706
23 changed files with 3728 additions and 4 deletions

View File

@@ -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'