Commit f15d955
fix: handle empty comment_type in email formatting (#177)
WordPress stores regular comments with comment_type as either empty
string or 'comment'. The strict === 'comment' check missed empty
strings, causing regular comments to be formatted as pingbacks/trackbacks
in notification emails. Now checks against known non-comment types instead.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent fc4ea75 commit f15d955
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments