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. git-svn-id: https://develop.svn.wordpress.org/trunk@48741 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
581a636bad
commit
55d73734e4
@ -489,17 +489,17 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||
$comment_types = apply_filters(
|
||||
'admin_comment_types_dropdown',
|
||||
array(
|
||||
'comment' => esc_html__( 'Comments' ),
|
||||
'pings' => esc_html__( 'Pings' ),
|
||||
'comment' => __( 'Comments' ),
|
||||
'pings' => __( 'Pings' ),
|
||||
)
|
||||
);
|
||||
|
||||
if ( $comment_types && is_array( $comment_types ) ) {
|
||||
printf( '<label class="screen-reader-text" for="filter-by-comment-type">%s</label>', esc_html__( 'Filter by comment type' ) );
|
||||
printf( '<label class="screen-reader-text" for="filter-by-comment-type">%s</label>', __( 'Filter by comment type' ) );
|
||||
|
||||
echo '<select id="filter-by-comment-type" name="comment_type">';
|
||||
|
||||
printf( "\t<option value=''>%s</option>", esc_html__( 'All comment types' ) );
|
||||
printf( "\t<option value=''>%s</option>", __( 'All comment types' ) );
|
||||
|
||||
foreach ( $comment_types as $type => $label ) {
|
||||
if ( get_comments(
|
||||
|
Loading…
Reference in New Issue
Block a user