2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-03 08:59:21 +08:00

Remove commented code

This commit is contained in:
scossar 2017-11-07 11:18:24 -08:00
parent b35aacc86c
commit 31cd203e98

View file

@ -80,9 +80,6 @@ if ( empty( $custom['discourse_permalink'] ) ) {
$comment_html = str_replace( '{user_url}', esc_url( $user_url ), $comment_html );
$comment_html = str_replace( '{username}', esc_html( $post->username ), $comment_html );
$comment_html = str_replace( '{fullname}', esc_html( $post->name ), $comment_html );
// Todo: run a test for the php-xml extension when the plugin's activated. If it's not there, use
// the old function.
//$comment_body = TemplateFunctions::convert_relative_img_src_to_absolute( $discourse_url, $comment_body );
$comment_body = TemplateFunctions::convert_relative_urls_to_absolute( $discourse_url, $post->cooked );
$comment_body = wp_kses_post( $comment_body );
$comment_html = str_replace( '{comment_body}', $comment_body, $comment_html );