]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-comments-list-table.php
WordPress 3.4
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-comments-list-table.php
index e3dc4c48b777157a4f402ca6ed9a2140dfccdc53..bb5a95e6a741ff71d40e57e3341ad9d47d1d6831 100644 (file)
@@ -130,13 +130,13 @@ class WP_Comments_List_Table extends WP_List_Table {
                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();
@@ -186,7 +186,7 @@ class WP_Comments_List_Table extends WP_List_Table {
                $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' );
@@ -556,5 +556,3 @@ class WP_Post_Comments_List_Table extends WP_Comments_List_Table {
                return 10;
        }
 }
-
-?>