-<form id="comments-form" action="" method="get">
-<ul class="subsubsub">
-<?php
-$status_links = array();
-$num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
-//, number_format_i18n($num_comments->moderated) ), "<span class='comment-count'>" . number_format_i18n($num_comments->moderated) . "</span>"),
-//, number_format_i18n($num_comments->spam) ), "<span class='spam-comment-count'>" . number_format_i18n($num_comments->spam) . "</span>")
-$stati = array(
- 'all' => __ngettext_noop('All', 'All'), // singular not used
- 'moderated' => __ngettext_noop('Pending (<span class="pending-count">%s</span>)', 'Pending (<span class="pending-count">%s</span>)'),
- 'approved' => __ngettext_noop('Approved', 'Approved'), // singular not used
- 'spam' => __ngettext_noop('Spam (<span class="spam-count">%s</span>)', 'Spam (<span class="spam-count">%s</span>)')
- );
-$class = ( '' === $comment_status ) ? ' class="current"' : '';
-// $status_links[] = "<li><a href='edit-comments.php'$class>" . __( 'All' ) . '</a>';
-$link = 'edit-comments.php';
-if ( !empty($comment_type) && 'all' != $comment_type )
- $link = add_query_arg( 'comment_type', $comment_type, $link );
-foreach ( $stati as $status => $label ) {
- $class = '';
-
- if ( str_replace( 'all', '', $status ) == $comment_status )
- $class = ' class="current"';
- if ( !isset( $num_comments->$status ) )
- $num_comments->$status = 10;
- if ( 'all' != $status )
- $link = add_query_arg( 'comment_status', $status, $link );
- if ( $post_id )
- $link = add_query_arg( 'p', absint( $post_id ), $link );
- /*
- // I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
- if ( !empty( $_GET['s'] ) )
- $link = add_query_arg( 's', attribute_escape( stripslashes( $_GET['s'] ) ), $link );
- */
- $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf(
- __ngettext( $label[0], $label[1], $num_comments->$status ),
- number_format_i18n( $num_comments->$status )
- ) . '</a>';
-}
-
-$status_links = apply_filters( 'comment_status_links', $status_links );
-
-echo implode( " |</li>\n", $status_links) . '</li>';
-unset($status_links);
-?>
-</ul>
-
-<p class="search-box">
- <label class="hidden" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
- <input type="text" class="search-input" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" />
- <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" />
-</p>
-
-<?php
-$comments_per_page = apply_filters('comments_per_page', 20, $comment_status);