From 8885a85ce2b380fa9990005765599a685095ef05 Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Fri, 16 Jan 2026 00:26:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E8=AF=95=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E4=BB=85=E5=AF=B9=E7=AE=A1=E7=90=86=E5=91=98=E5=8F=AF?= =?UTF-8?q?=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - argon_debug_console_footer_button() 添加管理员权限检查 - argon_debug_console_script() 添加管理员权限检查 --- functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/functions.php b/functions.php index 12355cf..fc34307 100644 --- a/functions.php +++ b/functions.php @@ -578,6 +578,10 @@ function argon_debug_console_footer_button() { if (get_option('argon_enable_debug_console', 'false') != 'true') { return; } + // 仅管理员可见 + if (!current_user_can('manage_options')) { + return; + } ?>