[wp-trac] [WordPress Trac] #57343: HTML in comments is automatically deleted

WordPress Trac noreply at wordpress.org
Fri Aug 15 10:11:37 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:
--------------------------+------------------------------

Comment (by locksoft):

 Replying to [comment:7 westonruter]:
 > 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.

 This.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57343#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list