diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index acc3b5bda2..1a23cb4316 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -5026,7 +5026,14 @@ function wp_required_field_indicator() { $glyph = __( '*' ); $indicator = '' . esc_html( $glyph ) . ''; - return $indicator; + /** + * Filters the markup for a visual indicator of required form fields. + * + * @since 6.1.0 + * + * @param string $indicator Markup for the indicator element. + */ + return apply_filters( 'wp_required_field_indicator', $indicator ); } /** @@ -5043,7 +5050,14 @@ function wp_required_field_message() { sprintf( __( 'Required fields are marked %s' ), wp_required_field_indicator() ) ); - return $message; + /** + * Filters the message to explain required form fields. + * + * @since 6.1.0 + * + * @param string $message Message text and glyph wrapped in a `span` tag. + */ + return apply_filters( 'wp_required_field_message', $message ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 2650849f8a..7868e41281 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54136'; +$wp_version = '6.1-alpha-54137'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.