//转义评论内容,防止恶意代码
function ludou_code_escape( $incoming_comment ) {
    $incoming_comment = strip_tags($incoming_comment);
    return $incoming_comment;
}
add_filter( 'comment_text', 'ludou_code_escape' );
add_filter( 'comment_text_rss', 'ludou_code_escape' );

 

作者@http://www.ludou.org/

相关文章:

  • 2021-04-23
  • 2021-07-04
猜你喜欢
  • 2022-12-23
  • 2021-11-05
  • 2021-07-22
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案