Don’t Make Comment Hyperlinks automatically clickable.
<?php remove_filter( 'comment_text', 'make_clickable', 9 ); | |
function plc_comment_post( $incoming_comment ) { | |
$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']); | |
$incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] ); | |
return( $incoming_comment ); | |
} | |
function plc_comment_display( $comment_to_display ) { | |
// Put the single quotes back in | |
$comment_to_display = str_replace( ''', "'", $comment_to_display ); | |
return $comment_to_display; | |
} .> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment