fix(user): remove medals beside profile names

This commit is contained in:
kate522 committed 2026-08-11 19:43:20 +08:00
1 parent ad3d431d18
commit 9781369b6b
3 files changed
+6 -2

No files matched your search

+4
View File
@@ -36,6 +36,7 @@ if (!function_exists('aksrt_render_user_identity_chips')) {
*
* @type bool $include_vip Whether to prepend VIP badge. Default true.
* @type bool $skip_level Whether to omit the level chip (rendered inline elsewhere). Default false.
* @type bool $skip_badges Whether to omit badge signals from this row. Default false.
* }
*/
function aksrt_render_user_identity_chips(int $user_id, string $context = 'author', array $args = []): string {
@@ -75,6 +76,9 @@ if (!function_exists('aksrt_render_user_identity_chips')) {
if (!empty($args['skip_level']) && $type === 'level') {
continue;
}
if (!empty($args['skip_badges']) && $type === 'badge') {
continue;
}
$tone = sanitize_html_class((string) ($signal['tone'] ?? 'info'));
$icon = sanitize_html_class((string) ($signal['icon'] ?? 'check'));
$icon_url = esc_url((string) ($signal['icon_url'] ?? ''));