Commit ca1d263
committed
Comments: Fix "Show more comments" button for custom comment types.
The comments metabox assumed all comment `<tr>` elements carry the
`comment` class, which is not the case for custom comment types such as
WooCommerce reviews. Match rows by an id starting with `comment-`
instead, so regular comments and custom comment types are both counted.
Also correct the default number of comments requested in the AJAX call
from 20 to 10, aligning the frontend with the backend, which falls back
to 10. The mismatch made the frontend believe all comments were already
loaded when they were not.
Props Aljullu, PavloBorysenko, tyxla.
Fixes #65392.
git-svn-id: https://develop.svn.wordpress.org/trunk@62624 602fd350-edb4-49c9-b593-d223f7449a821 parent e9ee595 commit ca1d263
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments