fix(user): show IP city on home/center and force /user + profile templates

This commit is contained in:
kate522 committed 2026-07-25 15:02:57 +08:00
1 parent ac7ff8d4f2
commit 820fafd8a7
6 files changed
+163 -49

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ if (!function_exists('aksrt_get_comments_user_name_html')) :
if ($user_id > 0) {
$user = get_userdata($user_id);
$display = $user instanceof WP_User ? $user->display_name : get_comment_author($comment);
$url = get_author_posts_url($user_id);
$url = function_exists('aksrt_get_user_home_url') ? aksrt_get_user_home_url($user_id) : get_author_posts_url($user_id);
$name = '<a class="text-ellipsis font-bold aksrt-comment__author" href="' . esc_url($url) . '">' . esc_html($display) . '</a>';
if (function_exists('aksrt_render_user_identity_chips')) {
$name .= aksrt_render_user_identity_chips($user_id, 'comment');