laoyang
ec815d4282
评论通知邮件无样式:接管核心通知正文 #39
卸载 wpDiscuz 后,评论通知回落到核心 wp_notify_postauthor /
wp_notify_moderator。theme-mail.php 只接管了通道(SMTP、From),
并把 Content-Type 强改成 text/html,而正文仍是核心拼的纯文本,
客户端按 HTML 渲染 ⇒ 换行丢、链接变裸地址。
新增 inc/theme-mail-core.php,挂 comment_notification_text /
comment_moderation_text 两个过滤器,把正文换成主题模板。这是核心
自己提供的扩展点,不改核心文件,删掉即回退。
模板新增 links 参数,把 通过/回收站/垃圾 渲染成一行文字链接
(并排三按钮在手机上必然换行、高度不齐)。
版本 4.2.1 -> 4.2.2
2026-11-06 20:11:24 +08:00
..
2026-10-25 19:41:49 +08:00
2026-10-27 21:40:00 +08:00
2026-10-23 13:55:23 +08:00
2026-10-26 18:42:40 +08:00
2026-10-24 01:03:36 +08:00
2026-10-25 20:19:27 +08:00
2026-10-25 17:10:06 +08:00
2026-10-26 13:25:51 +08:00
2026-10-28 18:23:36 +08:00
2026-10-25 10:36:29 +08:00
2026-10-23 12:55:41 +08:00
2026-10-26 12:20:33 +08:00
2026-10-25 22:17:45 +08:00
2026-11-06 20:11:24 +08:00
2026-11-06 20:11:24 +08:00
2026-10-24 01:03:36 +08:00
2026-10-23 14:43:47 +08:00
2026-10-24 01:03:36 +08:00
2026-10-25 09:52:07 +08:00
2026-10-23 22:56:10 +08:00
2026-10-28 17:45:19 +08:00
2026-10-23 13:55:23 +08:00
2026-10-23 12:55:41 +08:00
2026-10-23 13:55:23 +08:00
2026-10-28 17:18:54 +08:00
2026-10-28 08:27:53 +08:00
2026-10-27 13:33:53 +08:00
2026-10-28 23:03:49 +08:00