Move no_items logic to WP_Comments_Table. See #14579

git-svn-id: http://svn.automattic.com/wordpress/trunk@16108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu
2010-10-31 01:17:00 +00:00
parent 945115e73a
commit bb99a95284
2 changed files with 11 additions and 23 deletions

View File

@@ -113,6 +113,15 @@ class WP_Comments_Table extends WP_List_Table {
) );
}
function no_items() {
global $comment_status;
if ( 'moderated' == $comment_status )
_e( 'No comments awaiting moderation… yet.' );
else
_e( 'No comments found.' );
}
function get_views() {
global $post_id, $comment_status;
@@ -507,4 +516,4 @@ class WP_Post_Comments_Table extends WP_Comments_Table {
}
}
?>
?>