diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php index b92ad5c7be..78bb710b65 100644 --- a/src/wp-admin/includes/class-wp-screen.php +++ b/src/wp-admin/includes/class-wp-screen.php @@ -1085,9 +1085,12 @@ final class WP_Screen { continue; } - if ( 'comments' == $column ) { - $title = __( 'Comments' ); - } + /* + * The Comments column uses HTML in the display name with some screen + * reader text. Make sure to strip tags from the Comments column + * title and any other custom column title plugins might add. + */ + $title = wp_strip_all_tags( $title ); $id = "$column-hide"; echo '