diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index 444a2dcddf..acc3b5bda2 100644 --- a/src/wp-includes/general-template.php +++ b/src/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() ) );