[wp-trac] [WordPress Trac] #57343: HTML in comments is automatically deleted
WordPress Trac
noreply at wordpress.org
Thu Aug 14 23:55:03 UTC 2025
#57343: HTML in comments is automatically deleted
--------------------------+------------------------------
Reporter: locksoft | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 6.1.1
Severity: major | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Changes (by westonruter):
* keywords: 2nd-opinion => needs-patch
Comment:
I think this makes sense, since it would be consistent with the behavior
of the post editor. Namely, if a non-admin tries to edit a post and adds a
`<script>` tag, for example, this will get stripped out as expected. If an
admin edits that post, and then adds in a `<script>` and saves, it will be
preserved. If the original non-admin author edits the post again, then the
`<script>` will get stripped out.
The same behavior makes sense to me for comments.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57343#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list