Administration: Standardize "found in Trash" messages.

Props Presskopp, audrasjb.
Fixes #38669.
Built from https://develop.svn.wordpress.org/trunk@47234


git-svn-id: http://core.svn.wordpress.org/trunk@47034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-02-10 04:57:06 +00:00
parent a6949956d1
commit 4f151b577e
3 changed files with 8 additions and 2 deletions

View File

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

View File

@ -222,7 +222,11 @@ class WP_Media_List_Table extends WP_List_Table {
/** /**
*/ */
public function no_items() { 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.' );
}
} }
/** /**

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.4-alpha-47233'; $wp_version = '5.4-alpha-47234';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.