Make WordPress Core

Changeset 48741


Ignore:
Timestamp:
08/05/2020 01:52:01 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Comments: Remove a few more unnecessary instances of esc_html() in WP_Comments_List_Table::comment_status_dropdown().

Core translations are considered safe, and these labels are not escaped in any other instances.

Follow-up to [48521], [48722], [48724].

See #40188, #50815.

File:
1 edited

Legend:

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

    r48724 r48741  
    490490            'admin_comment_types_dropdown',
    491491            array(
    492                 'comment' => esc_html__( 'Comments' ),
    493                 'pings'   => esc_html__( 'Pings' ),
     492                'comment' => __( 'Comments' ),
     493                'pings'   => __( 'Pings' ),
    494494            )
    495495        );
    496496
    497497        if ( $comment_types && is_array( $comment_types ) ) {
    498             printf( '<label class="screen-reader-text" for="filter-by-comment-type">%s</label>', esc_html__( 'Filter by comment type' ) );
     498            printf( '<label class="screen-reader-text" for="filter-by-comment-type">%s</label>', __( 'Filter by comment type' ) );
    499499
    500500            echo '<select id="filter-by-comment-type" name="comment_type">';
    501501
    502             printf( "\t<option value=''>%s</option>", esc_html__( 'All comment types' ) );
     502            printf( "\t<option value=''>%s</option>", __( 'All comment types' ) );
    503503
    504504            foreach ( $comment_types as $type => $label ) {
Note: See TracChangeset for help on using the changeset viewer.