[wp-trac] [WordPress Trac] #36409: Comments number is wrong

WordPress Trac noreply at wordpress.org
Thu Jan 15 08:06:26 UTC 2026


#36409: Comments number is wrong
--------------------------------------+-----------------------
 Reporter:  sidati                    |       Owner:  pbearne
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  7.0
Component:  Comments                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  template
--------------------------------------+-----------------------
Changes (by ozgursar):

 * keywords:  has-patch has-unit-tests needs-testing => has-patch has-unit-
     tests


Comment:

 == Combined Bug Reproduction and Patch Testing Report

 Patch tested: Combined Bug Reproduction and Patch Testing Report

 === Steps to Reproduce or Test
 1. View Hello World post
 2. Add a couple of replies
 3. Dashboard > Comments > Unapprove a reply or parent comment
 4. View post to see comment count
 5. 🐞 Bug occurs (When I unapprove the parent comment, number of comments
 reduce by one)

 === Expected Results
 - ✅ If parent comment is unapproved, all child replies should also be
 uncounted)

 === Environment
 - WordPress: 6.9-beta3-20251107.120557
 - PHP: 8.3.29
 - Server: PHP.wasm
 - Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
 - Browser: Opera
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.3
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1


 ==== Actual Results
 When reproducing a bug/defect:
 - ❌ Error condition occurs.

 When testing the bugfix patch:
 - ✅ Issue resolved with patch.

 === Screenshots
 ||= Before =||= After =||
 || [[Image(https://i.imgur.com/9LfNZ4t.gif)]] ||
 [[Image(https://i.imgur.com/Xfjinps.gif)]] ||

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36409#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list