用户域一次性收口:统一公开主页资源归属并折叠作者页双路径

把 uh-forum 样式收进 user-home 路由、author.php 收成 301 回退、公开主页脚本以 author.js 为唯一实现,并去掉 enqueue/body class 中的 is_author 分叉。
This commit is contained in:
2026-07-10 22:11:44 +08:00
parent c28c1226ac
commit f76d4650e5
9 changed files with 157 additions and 360 deletions
+2 -1
View File
@@ -712,7 +712,8 @@ if (!function_exists('aksrt_is_user_home_page')) :
* 判断当前是否为公开用户主页
*/
function aksrt_is_user_home_page(): bool {
return (bool) get_query_var('user_nicename');
return (bool) get_query_var('user_nicename')
|| is_page_template('templates/pages/page-user-home.php');
}
endif;