有一些代码:
function venice_comments() {
?>
<div class="element relative">
<div class="avatar-wrapper">
<?php echo get_avatar(get_comment_author_email(), '80', '', '', array('class' => 'round')); ?>
</div>
<div class="comment-text"><?php comment_text(); ?></div>
<div class="push20"></div>
<div class="item-info f12">
<span class="item-date"><?php printf(esc_html__('%1$s at %2$s', 'venice'), get_comment_date(), get_comment_time()) ?></span>
<span class="person"><?php echo get_comment_author_link(); ?></span>
<span><?php edit_comment_link(esc_html__('Edit Comment', 'some_domain')); ?></span>
<span><?php comment_reply_link(array('reply_text' => esc_html__('Reply Comment', 'some_domain'), 'max-depth' => 5), get_comment_ID(), get_the_ID()); ?></span>
</div>
<div class="push35"></div>
</div>
<?php
}
除comment_reply_link
外,此代码工作正常,因为此函数的结果为空。我做错了什么?提前谢谢!