mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 14:05:11 +00:00
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. Built from https://develop.svn.wordpress.org/trunk@48741 git-svn-id: http://core.svn.wordpress.org/trunk@48503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2f878f1e74
commit
ee213e333b
@ -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(
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-alpha-48736';
|
||||
$wp_version = '5.6-alpha-48741';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user