修复了一些问题

This commit is contained in:
kate522 committed 2026-08-25 18:11:26 +08:00
1 parent dbb1f776f2
commit 0109a59922
10 files changed
+121 -33

No files matched your search

-2
View File
@@ -227,7 +227,6 @@ function aksrt_render_message_center_list(int $user_id, string $view, int $page
function aksrt_render_message_center_detail(array $item, string $view): void {
$type = (string) ($item['type'] ?? 'notice');
$target_url = (string) ($item['url'] ?? '');
?>
<article class="message-detail" data-notification-id="<?php echo esc_attr((string) ($item['id'] ?? '')); ?>">
<header class="message-detail__header">
@@ -238,7 +237,6 @@ function aksrt_render_message_center_detail(array $item, string $view): void {
</header>
<div class="message-detail__content"><?php echo wp_kses_post(wpautop(esc_html((string) ($item['desc'] ?? '')))); ?></div>
<footer class="message-detail__actions">
<?php if ($target_url !== '') : ?><a href="<?php echo esc_url($target_url); ?>" class="message-detail__primary"><?php esc_html_e('查看相关内容', 'aksrt'); ?></a><?php endif; ?>
<button type="button" class="message-item__action-btn message-item__action-btn--danger js-msg-delete" data-id="<?php echo esc_attr((string) ($item['id'] ?? '')); ?>" data-detail="1"><?php esc_html_e('删除消息', 'aksrt'); ?></button>
</footer>
</article>