feat(forum): frontend 1:1 list/tabs/urls/enqueue
Wire Zibll-style board sort tabs, shared topic rows, page-template URLs, forum asset enqueue on home/plate, home synthesis load-more, and topic last_reply meta for last-reply ordering. No dual-read.
This commit is contained in:
1 parent
df6b224dd3
commit
780c8cb4f7
23 files changed
+843
-481
No files matched your search
@@ -178,7 +178,7 @@ trait AKSRT_Forum_Topic_Service_Part_1 {
|
||||
$post->post_title
|
||||
), [
|
||||
'title' => __('帖子已删除', 'aksrt'),
|
||||
'target_url' => home_url('/forums/'),
|
||||
'target_url' => aksrt_get_forum_home_url(),
|
||||
'reason' => $note,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ trait AKSRT_Forum_Topic_Service_Part_4 {
|
||||
wp_send_json_success([
|
||||
'message' => (string) ($result['message'] ?? __('主题已提交', 'aksrt')),
|
||||
'post_id' => (int) ($result['post_id'] ?? 0),
|
||||
'redirect' => (string) ($result['redirect'] ?? home_url('/forums/')),
|
||||
'redirect' => (string) ($result['redirect'] ?? aksrt_get_forum_home_url()),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user