From 6b6302f95e1bdfec9b5841f311b274ad658dbc2f Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 12 Sep 2022 21:52:10 +0000 Subject: [PATCH] Comments: Remove `aria-hidden="true"` attribute for visible text in comment template. This changeset removes `aria-hidden="true"` attribute used for required fields in comments template, for better accessibility. It removes the attribute from both `wp_required_field_indicator()` and `wp_required_field_message()` patterns. Follow-up to [53888]. Props juliemoynat, audrasjb, joedolson, sabernhardt, afercia, costdev. Fixes #55717. Built from https://develop.svn.wordpress.org/trunk@54136 git-svn-id: http://core.svn.wordpress.org/trunk@53695 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 444a2dcddf..acc3b5bda2 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -5024,7 +5024,7 @@ function __checked_selected_helper( $helper, $current, $echo, $type ) { // phpcs function wp_required_field_indicator() { /* translators: Character to identify required form fields. */ $glyph = __( '*' ); - $indicator = ''; + $indicator = '' . esc_html( $glyph ) . ''; return $indicator; } @@ -5038,7 +5038,7 @@ function wp_required_field_indicator() { */ function wp_required_field_message() { $message = sprintf( - '', + '%s', /* translators: %s: Asterisk symbol (*). */ sprintf( __( 'Required fields are marked %s' ), wp_required_field_indicator() ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 062b451610..2650849f8a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54135'; +$wp_version = '6.1-alpha-54136'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.