-<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' => _n_noop('All', 'All'), // singular not used
- 'moderated' => _n_noop('Pending (<span class="pending-count">%s</span>)', 'Pending (<span class="pending-count">%s</span>)'),
- 'approved' => _n_noop('Approved', 'Approved'), // singular not used
- 'spam' => _n_noop('Spam (<span class="spam-count">%s</span>)', 'Spam (<span class="spam-count">%s</span>)')
- );
-$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 ( $status == $comment_status )
- $class = ' class="current"';
- if ( !isset( $num_comments->$status ) )
- $num_comments->$status = 10;
- $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', esc_attr( stripslashes( $_GET['s'] ) ), $link );
- */
- $status_links[] = "<li class='$status'><a href='$link'$class>" . sprintf(
- _n( $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="screen-reader-text" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>
- <input type="text" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" />
- <input type="submit" value="<?php esc_attr_e( 'Search Comments' ); ?>" class="button" />
-</p>
-
-<?php
-$comments_per_page = get_user_option('edit_comments_per_page');
-if ( empty($comments_per_page) )
- $comments_per_page = 20;
-$comments_per_page = apply_filters('comments_per_page', $comments_per_page, $comment_status);
-
-if ( isset( $_GET['apage'] ) )
- $page = abs( (int) $_GET['apage'] );
-else
- $page = 1;
-
-$start = $offset = ( $page - 1 ) * $comments_per_page;