[wp-trac] [WordPress Trac] #61827: wp_check_comment_disallowed_list() can't be used to match unprocessed HTML

WordPress Trac noreply at wordpress.org
Wed Oct 23 16:30:44 UTC 2024


#61827: wp_check_comment_disallowed_list() can't be used to match unprocessed HTML
--------------------------------------+-----------------------------
 Reporter:  cfinke                    |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.7
Component:  Comments                  |     Version:  6.6.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:14 SergeyBiryukov]:
 > I think we can just call `wp_check_comment_disallowed_list()` directly
 for the second check instead

 Apparently it's a bit more complicated than that, we would need to either
 replicate [source:tags/6.6.2/src/wp-
 includes/comment.php?marks=785-814#L784 this whole block] from
 `wp_allow_comment()` or move it to a new function that would be called
 from both places.

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


More information about the wp-trac mailing list