[Resolved] Filters on Comment Content
It would be nice if you allowed us developers to apply filters on
get_comment_contentbefore you parse it for Crayons. Your code ignores it because when you capture your Crayons in
the_postsfilter, you access
$comment->comment_contentdirectly and therefore bypassing any filters other developers may have set. We might want to mangle the comments before your Crayon plugin takes control – perhaps I want to limit some of the settings a user adds to a crayon. I think it would be a simple fix if you just applied filters manually when you grab the content:
$captures = self::capture_crayons($comment->comment_ID, apply_filters('get_comment_text', $comment->comment_content, $comment), array(CrayonSettings::DECODE => TRUE));
- The topic ‘[Resolved] Filters on Comment Content’ is closed to new replies.