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 ) {
_e( 'No comments awaiting moderation.' );
} elseif ( 'trash' === $comment_status ) {
_e( 'No comments found in Trash.' );
} else {
_e( 'No comments found.' );
}

View File

@ -222,8 +222,12 @@ class WP_Media_List_Table extends WP_List_Table {
/**
*/
public function no_items() {
if ( $this->is_trash ) {
_e( 'No media files found in Trash.' );
} else {
_e( 'No media files found.' );
}
}
/**
* Override parent views so we can use the filter bar display.

View File

@ -13,7 +13,7 @@
*
* @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.