[wp-trac] [WordPress Trac] #46963: Comments meta box offset bug for custom comment types
WordPress Trac
noreply at wordpress.org
Fri Jul 4 09:00:27 UTC 2025
#46963: Comments meta box offset bug for custom comment types
-------------------------------------+---------------------------------
Reporter: mikejolley | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: ui, administration
-------------------------------------+---------------------------------
Comment (by sainathpoojary):
== Reproduction Report
=== Description
This report validates whether the offset bug in the Comments meta box for
custom comment types can still be reproduced. The original issue mentions
WooCommerce reviews as an example; however, this was not reproducible in
current WooCommerce. To simulate the condition more precisely, I created a
plugin that registers a `custom_note` comment type.
The bug occurs because core JavaScript expects a `.comment` class to be
present when calculating the offset during "Show more comments"
pagination. Custom comment types do not include this class by default.
Plugin used to simulate:
📎 https://gist.github.com/SainathPoojary/d6f39d0e45a3b2018f9312bdda1e26b5
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Classic Editor 1.6.7
* Simulate Comment Meta Box Offset Bug 1.0
* Test Reports 1.2.0
=== Steps to Reproduce
1. Activate the “Simulate Comment Meta Box Offset Bug” plugin.
2. Navigate to the **Posts** screen and open the post titled **"Custom
Comment Type Test"**.
3. Scroll to the **Comments** meta box.
4. Click **“Show more comments”**.
5. Observe that the same comments are duplicated instead of paginated
correctly.
=== Actual Results
âś… Error condition occurs (reproduced).
=== Additional Notes
- This bug is still reproducible in the current development version of
WordPress.
- A patch previously proposed
[https://core.trac.wordpress.org/attachment/ticket/46963/46963.2.patch
46963.2] is no longer applying cleanly and need to be refreshed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46963#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list