WordPress.org

Make WordPress Core

Changeset 47234


Ignore:
Timestamp:
02/10/2020 04:56:01 AM (10 months ago)
Author:
SergeyBiryukov
Message:

Administration: Standardize "found in Trash" messages.

Props Presskopp, audrasjb.
Fixes #38669.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r47219 r47234  
    201201        if ( 'moderated' === $comment_status ) {
    202202            _e( 'No comments awaiting moderation.' );
     203        } elseif ( 'trash' === $comment_status ) {
     204            _e( 'No comments found in Trash.' );
    203205        } else {
    204206            _e( 'No comments found.' );
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r47219 r47234  
    223223     */
    224224    public function no_items() {
    225         _e( 'No media files found.' );
     225        if ( $this->is_trash ) {
     226            _e( 'No media files found in Trash.' );
     227        } else {
     228            _e( 'No media files found.' );
     229        }
    226230    }
    227231
Note: See TracChangeset for help on using the changeset viewer.