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:
parent
023d4b2796
commit
acb845d7ea
@ -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.' );
|
||||||
}
|
}
|
||||||
|
@ -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.' );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user