global $comment_status;
if ( 'moderated' == $comment_status )
- _e( 'No comments awaiting moderation… yet.' );
+ _e( 'No comments awaiting moderation.' );
else
_e( 'No comments found.' );
}
function get_views() {
- global $post_id, $comment_status;
+ global $post_id, $comment_status, $comment_type;
$status_links = array();
$num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
$actions = array();
if ( in_array( $comment_status, array( 'all', 'approved' ) ) )
$actions['unapprove'] = __( 'Unapprove' );
- if ( in_array( $comment_status, array( 'all', 'moderated', 'spam' ) ) )
+ if ( in_array( $comment_status, array( 'all', 'moderated' ) ) )
$actions['approve'] = __( 'Approve' );
if ( in_array( $comment_status, array( 'all', 'moderated', 'approved' ) ) )
$actions['spam'] = _x( 'Mark as Spam', 'comment' );
return 10;
}
}
-
-?>