Skip to content

Commit

Permalink
Output message when no ratings exist. (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne authored Oct 23, 2024
1 parent 4ac2316 commit dd79b17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mu-plugins/blocks/ratings-bars/render.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
$data = wp_parse_args( $data, $defaults );

if ( empty( $data['ratings'] ) || empty( $data['ratingsCount'] ) ) {
echo '<p>' . esc_html__( 'No reviews have been submitted yet.', 'wporg' ) . '</p>';
return;
}

Expand Down

0 comments on commit dd79b17

Please sign in to comment.