WordPress.org

Make WordPress Core

Ticket #37826: 37826.2.patch

File 37826.2.patch, 1.1 KB (added by stevenlinx, 5 years ago)
  • src/wp-admin/includes/class-wp-list-table.php

    diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php
    index bf642ac..c60d39e 100644
    a b class WP_List_Table { 
    659659                        printf( '<span aria-hidden="true">—</span><span class="screen-reader-text">%s</span>',
    660660                                __( 'No comments' )
    661661                        );
     662                // Approved comments AND Posts that were trashed. Hyperlinks for editing are removed.
     663                } elseif ( $approved_comments && $_GET['post_status'] == 'trash' ) {
     664                        printf( '<span class="post-com-count post-com-count-approved"><span class="comment-count-approved" aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></span>',
     665                                $approved_comments_number,
     666                                $pending_comments ? $approved_phrase : $approved_only_phrase
     667                        );
    662668                // Approved comments have different display depending on some conditions.
    663669                } elseif ( $approved_comments ) {
    664670                        printf( '<a href="%s" class="post-com-count post-com-count-approved"><span class="comment-count-approved" aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',