From 4d6fd641e5650351be6e96ffaed545c0352f5f48 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 22 Aug 2026 13:33:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(comments):=20=E7=BD=AE=E9=A1=B6=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E7=A7=BB=E9=99=A4=20wp-ajax-submit=20=E7=B1=BB?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=20vendor=20main.min.js=20=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E8=A7=A6=E5=8F=91=E7=A9=BA=20admin-ajax=20=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=EF=BC=88400=20"0"=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/helpers/comments/item.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/helpers/comments/item.php b/inc/helpers/comments/item.php index 2c1d3372..10e69cc1 100644 --- a/inc/helpers/comments/item.php +++ b/inc/helpers/comments/item.php @@ -158,7 +158,9 @@ if (!function_exists('aksrt_get_comments_action_dropdown_html')) : if (!empty($perms['can_pin']) && (int) $comment->comment_parent === 0) { $label = $is_pinned ? __('取消置顶', 'aksrt') : __('设置置顶', 'aksrt'); - $lists .= '
  • ' . esc_html($label) . '
  • '; + // 不带 zibll 的 wp-ajax-submit 类:vendor main.min.js 会全局代理该类并向 + // admin-ajax 发空 action 请求(400 "0"),置顶走 data-comment-action REST。 + $lists .= '
  • ' . esc_html($label) . '
  • '; } if (!empty($perms['can_edit'])) { $lists .= '
  • ' . esc_html__('编辑', 'aksrt') . '
  • ';