进行了一些小修复

This commit is contained in:
2026-08-26 14:21:32 +08:00
parent 2e7cc56043
commit d37c34f71c
114 changed files with 86 additions and 181 deletions
+1 -2
View File
@@ -366,7 +366,7 @@ trait ScriptsPart1c {
}
// Comment toolbar (smilie/code/image/quick shortcodes) — post form.
// Comment toolbar (code/image/quick shortcodes) — post form.
$load_comment_tools = !empty($singular_assets['needs_comment_tools']);
if ($load_comment_tools) {
$comment_tools_path = get_template_directory() . '/assets/js/comment-tools.js';
@@ -480,7 +480,6 @@ trait ScriptsPart1c {
'commentUploadMaxSize' => 2 * 1024 * 1024,
'commentIasMax' => class_exists('\AKSRT\Settings\Settings') ? \AKSRT\Settings\Settings::get_comment_display_settings()['paging_ajax_ias_max'] : 3,
'commentQuickPhrases' => class_exists('\AKSRT\Settings\Settings') ? (\AKSRT\Settings\Settings::get_comment_display_settings()['quick_phrases'] ?? []) : [],
'commentSmiliesBase' => function_exists('aksrt_comment_smilies_base_uri') ? aksrt_comment_smilies_base_uri() : (trailingslashit(get_template_directory_uri()) . 'assets/img/smilies/'),
'restUrl' => esc_url_raw(rest_url('aksrt/v1')),
// Alias used by modal-auth / follow / report (same value as restUrl).
'apiUrl' => esc_url_raw(rest_url('aksrt/v1')),