Fix: use correct type specifier for rating HTML (https://github.com/woocommerce/woocommerce-blocks/pull/7592)
This commit is contained in:
parent
9a2a4f5c9f
commit
7467be8605
|
@ -32,8 +32,8 @@ const Rating = ( {
|
|||
|
||||
const ratingHTML = {
|
||||
__html: sprintf(
|
||||
/* translators: %f is referring to the rating value */
|
||||
__( 'Rated %f out of 5', 'woo-gutenberg-products-block' ),
|
||||
/* translators: %s is the rating value wrapped in HTML strong tags. */
|
||||
__( 'Rated %s out of 5', 'woo-gutenberg-products-block' ),
|
||||
sprintf( '<strong class="rating">%f</strong>', rating )
|
||||
),
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue