Administration: Standardize "found in Trash" messages.

Props Presskopp, audrasjb.
Fixes #38669.

git-svn-id: https://develop.svn.wordpress.org/trunk@47234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-02-10 04:56:01 +00:00
parent 023d4b2796
commit acb845d7ea
2 changed files with 7 additions and 1 deletions

View File

@ -200,6 +200,8 @@ class WP_Comments_List_Table extends WP_List_Table {
if ( 'moderated' === $comment_status ) {
_e( 'No comments awaiting moderation.' );
} elseif ( 'trash' === $comment_status ) {
_e( 'No comments found in Trash.' );
} else {
_e( 'No comments found.' );
}

View File

@ -222,7 +222,11 @@ class WP_Media_List_Table extends WP_List_Table {
/**
*/
public function no_items() {
_e( 'No media files found.' );
if ( $this->is_trash ) {
_e( 'No media files found in Trash.' );
} else {
_e( 'No media files found.' );
}
}
/**