[wp-trac] [WordPress Trac] #24913: comment_text filter used differently in two places in core

WordPress Trac noreply at wordpress.org
Sun Dec 18 21:47:44 UTC 2016


#24913: comment_text filter used differently in two places in core
--------------------------+-----------------------
 Reporter:  ronalfy       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Comments      |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+-----------------------

Comment (by rjeady):

 A better question: why is the same filter used for both contexts?
 Inserting a comment into the database and rendering a comment are very
 different situations. I struggle to imagine why you'd want to perform the
 same comment text filtering twice.

 I find using the same filter for both confusing and the workaround to
 detect which context we're in even more so.

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


More information about the wp-trac mailing list