WordPress.org

Make WordPress Core

Ticket #36424: 36424.patch

File 36424.patch, 571 bytes (added by rachelbaker, 4 years ago)

Moved aria-hidden attribute into span with icon classes

  • src/wp-admin/includes/class-wp-list-table.php

     
    686686                                $approved_comments ? __( 'No pending comments' ) : __( 'No comments' )
    687687                        );
    688688                }
     689                if ( ! comments_open( $post_id ) ) {
     690                        printf( '<span aria-hidden="true" class="dashicons dashicons-lock"></span><span class="screen-reader-text">%s</span>', __( 'Comments are closed' ) );
     691                }
    689692        }
    690693
    691694        /**