tag in comments #873 $comment_content = wpautop( $comment_content ); $sanitizer = new AMPFORWP_Content( $comment_content, array(), apply_filters( 'ampforwp_content_sanitizers', array( 'AMP_Img_Sanitizer' => array(), 'AMP_Video_Sanitizer' => array(), 'AMP_Style_Sanitizer' => array(), 'AMP_Iframe_Sanitizer' => array( 'add_placeholder' => true, ) ) ) ); $sanitized_comment_content = $sanitizer->get_amp_content(); echo make_clickable( $sanitized_comment_content );//amphtml content, no kses ?>
- >
tag in comments #873
$comment_content = wpautop( $comment_content );
$sanitizer = new AMPFORWP_Content( $comment_content, array(), apply_filters( 'ampforwp_content_sanitizers', array(
'AMP_Img_Sanitizer' => array(),
'AMP_Video_Sanitizer' => array(),
'AMP_Style_Sanitizer' => array(),
'AMP_Iframe_Sanitizer' =>
array(
'add_placeholder' => true,
)
) ) );
$sanitized_comment_content = $sanitizer->get_amp_content();
echo make_clickable( $sanitized_comment_content );//amphtml content, no kses ?>
AMPFORWP_COMMENTS_PER_PAGE , //Allow comment pagination
'style' => 'li',
'type' => 'comment',
'max_depth' => 5,
'avatar_size' => 0,
'callback' => 'ampforwp_custom_translated_comment',
'reverse_top_level' => true //Show the latest comments at the top of the list
), $comments); ?>
add_query_arg( array('cpage' => '%#%', 'amp' => '1'), get_permalink() ), 'format' => '', 'total' => $max_page, //'current' => 0, 'echo' => true, 'add_fragment' => '#comments', ); paginate_comments_links( $args ); ?>