[wp-trac] [WordPress Trac] #35419: Incorrect comment pagination when comment threading is turned off

WordPress Trac noreply at wordpress.org
Tue Jan 12 15:25:31 UTC 2016


#35419: Incorrect comment pagination when comment threading is turned off
--------------------------+-----------------------------
 Reporter:  jmdodd        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 In `comments_template()`, the comment count for pagination is queried with
 the `'parent' = 0` parameter. When threading is turned off, the comment
 count for pagination still excludes child comments from the query. The
 number of found comments can be smaller than the actual number of
 comments, resulting in pagination issues because the total is incorrect.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35419>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list