From dd79b174dce49aca7307a1915f23339cb8b91273 Mon Sep 17 00:00:00 2001 From: Steven Dufresne Date: Wed, 23 Oct 2024 14:47:03 +0900 Subject: [PATCH] Output message when no ratings exist. (#656) --- mu-plugins/blocks/ratings-bars/render.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mu-plugins/blocks/ratings-bars/render.php b/mu-plugins/blocks/ratings-bars/render.php index bfe5c2e3..9b5f1094 100644 --- a/mu-plugins/blocks/ratings-bars/render.php +++ b/mu-plugins/blocks/ratings-bars/render.php @@ -34,6 +34,7 @@ $data = wp_parse_args( $data, $defaults ); if ( empty( $data['ratings'] ) || empty( $data['ratingsCount'] ) ) { + echo '

' . esc_html__( 'No reviews have been submitted yet.', 'wporg' ) . '

'; return; }