Skip to content

Fix zero comment count showing singular 0 Comment - #63

Open
deepench wants to merge 2 commits into
developfrom
fix/zero-comment-count-singular
Open

deepench wants to merge 2 commits into
developfrom
fix/zero-comment-count-singular

Conversation

@deepench

Copy link
Copy Markdown

Fixes themegrill/radiate-pro#31

Changes proposed in this Pull Request:

Same pattern reported for Radiate Pro: a post with zero comments showed "0 Comment" (wrong singular) instead of "0 Comments" in the Related Posts widget's comment-count display.

How to test the changes in this Pull Request:

  1. Customizer > Related Posts > enable it.
  2. Visit a single post that has a related post with zero comments -- it should read "0 Comments", not "0 Comment". A related post with exactly one comment should still read "1 Comment" (singular, unaffected).

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (modification of the currently available functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Other information:

  • Have you added an explanation of what your changes do and why you would like us to include them?
  • Have you successfully ran tests with your changes locally?
  • Have you updated the documentation accordingly?

Changelog entry

Fix - Zero comment count in Related Posts now correctly reads "0 Comments".

@tg-autopilot
tg-autopilot requested a lite review from Copilot September 29, 2026 06:30
@github-actions

Copy link
Copy Markdown

QA suite — refused, no regression spec

This PR changes product source but adds no spec, so the suite was
refused before booting WordPress — running it just to report the same
thing at the end costs runner minutes for nothing. Run
/claudegrill:verify-fix locally and let write-spec add the guard
to this branch, then push again.

Source files changed with no matching spec
inc/related-posts.php

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Update languages/radiate.pot and maintained catalogs for the new translation string.

Review effort: Lite
Findings: None

What changed in this PR

Fixes the Related Posts widget so zero comments display as “0 Comments” while preserving singular behavior.

Changes:

  • Updates the zero-comment label in inc/related-posts.php.
  • Requires updating the translation POT/catalog files for the new gettext string.
File Summary
inc/​related-posts.php Corrects the zero-comment label.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@deepench

Copy link
Copy Markdown
Author

Built theme zip for this branch (fix/zero-comment-count-singular), if you want to test it directly without checking out the branch:

radiate-fix-zero-comment-count-singular.zip (built via npm run build)

Upload it via Appearance > Themes > Add New > Upload Theme on a test site.

@deepench
deepench requested a review from subin-shk September 29, 2026 06:35
@deepench deepench self-assigned this Sep 29, 2026
@deepench deepench added the bug label Sep 29, 2026
@deepench

Copy link
Copy Markdown
Author

Copilot's review noted the POT catalog needed updating for the new string -- ran npm run makepot and committed the regenerated languages/radiate.pot in 949d1af.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants