Skip to content

Commit

Permalink
Merge pull request #613 from equalizedigital/william/604/prevent-0th-…
Browse files Browse the repository at this point in the history
…displaying-on-readability-when-checkable-content--is-empty

When readability score is 0 use `N/A` instead of `0th`
  • Loading branch information
pattonwebz authored May 6, 2024
2 parents 183f257 + 4d107be commit 94f6879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/class-summary-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private function calculate_content_grade() {
);
}

return $content_grade;
return (int) round( $content_grade );
}

/**
Expand Down

0 comments on commit 94f6879

Please sign in to comment.