From d9a3685001fc740539563ba5e0d25c2001fd61ac Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 31 Jul 2026 11:25:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A4=E8=AF=81=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E4=B8=8E=E7=94=A8=E6=88=B7=E5=90=8D=E5=90=8C=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user-center-renderers/profile-header.php | 34 ++++++--------- templates/parts/user/author-hero.php | 43 ++++++++----------- 2 files changed, 30 insertions(+), 47 deletions(-) diff --git a/inc/helpers/user-center-renderers/profile-header.php b/inc/helpers/user-center-renderers/profile-header.php index a79256a7..fcb06c58 100644 --- a/inc/helpers/user-center-renderers/profile-header.php +++ b/inc/helpers/user-center-renderers/profile-header.php @@ -46,30 +46,20 @@ extract($context, EXTR_SKIP); // phpcs:ignore WordPress.PHP.DontExtract.extract_ echo \AKSRT\User\Level::get_badge_html((int) $user_id); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?> - - description) : ?> -

description); ?>

- - -
- - '; + } } ?> - - - - <?php echo esc_attr($signal['label']); ?> - - - - - - -
+ + description) : ?> +

description); ?>

diff --git a/templates/parts/user/author-hero.php b/templates/parts/user/author-hero.php index ccd68ce6..9ac275a2 100644 --- a/templates/parts/user/author-hero.php +++ b/templates/parts/user/author-hero.php @@ -92,18 +92,20 @@ $pm_url = ($pm_enabled && $messages_url !== '')

- display_name); ?> - -

+ display_name); ?> + false, + 'skip_level' => false, + ]); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped + } + ?> + - -
- + +
+
- - false, 'skip_level' => true]); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - ?> - -
- - - description) : ?> + description) : ?>

description); ?>