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

This commit is contained in:
2026-07-25 15:02:57 +08:00
parent ac7ff8d4f2
commit 820fafd8a7
6 changed files with 163 additions and 49 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ $meta_items = is_array($args['meta_items'] ?? null) ? array_values(array_filter(
$author_id = (int) get_the_author_meta('ID');
$author_name = get_the_author();
$author_url = get_author_posts_url($author_id);
$author_url = function_exists('aksrt_get_user_home_url') ? aksrt_get_user_home_url($author_id) : get_author_posts_url($author_id);
$modified_ts = (int) get_the_modified_time('U');
$published_ts = (int) get_the_time('U');
$now = (int) current_time('timestamp');