Make WordPress Core

Ticket #38669: 38669.diff

File 38669.diff, 1.2 KB (added by Presskopp, 9 years ago)
  • class-wp-comments-list-table.php

     
    181181         * @global string $comment_status
    182182         */
    183183        public function no_items() {
    184                 global $comment_status;
     184                        global $comment_status;
    185185
    186                 if ( 'moderated' === $comment_status ) {
    187                         _e( 'No comments awaiting moderation.' );
    188                 } else {
    189                         _e( 'No comments found.' );
    190                 }
    191         }
     186                        if ( 'moderated' === $comment_status ) {
     187                                        _e( 'No comments awaiting moderation.' );
     188                        } else {
     189                                        if ( 'trash' === $comment_status ) {
     190                                                        _e( 'No comments found in Trash.' );
     191                                        } else {
     192                                        _e( 'No comments found.' ); }
     193                        }
     194        }
    192195
    193196        /**
    194197         *
  • class-wp-media-list-table.php

     
    213213         * @access public
    214214         */
    215215        public function no_items() {
     216                if ( $this->is_trash ) {
     217                        _e( 'No media files found in Trash.' );
     218                        } else {
    216219                _e( 'No media files found.' );
     220                }
    217221        }
    218222
    219223        /**