'post_id' =>
$post->ID,
'number' => 1,
'count' => true,
) );
$wp_list_table =
_get_list_table( 'WP_Post_Comments_List_Table'
);
$wp_list_table->
display( true
);
if ( 1 >
$total ) { echo '<p id="no-comments">' .
__( 'No comments yet.'
) . '</p>';
} else { $hidden =
get_hidden_meta_boxes( get_current_screen() );
if ( !
in_array( 'commentsdiv',
$hidden, true
) ) { ?>
<script type="text/javascript">jQuery(function(){commentsBox.get(<?php
echo $total; ?>, 10);});</script>
<?php
} ?>
<p class="hide-if-no-js" id="show-comments"><a href="#commentstatusdiv" onclick="commentsBox.load(<?php
echo $total; ?>);return false;"><?php
_e( 'Show comments'
); ?></a> <span class="spinner"></span></p>
<?php
}