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:
@@ -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 {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user