[wp-trac] [WordPress Trac] #29462: comment pagination in reverse order should display a full number of the latest comments

WordPress Trac noreply at wordpress.org
Thu Oct 1 05:19:20 UTC 2015


#29462: comment pagination in reverse order should display a full number of the
latest comments
--------------------------+-----------------------------
 Reporter:  mark-k        |       Owner:  obenland
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Future Release
Component:  Comments      |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------

Comment (by boonebgorges):

 If we had real comment permalinks, we could make the requested changes.
 #34106

 In the meantime, here's an idea I talked over with peterwilsoncc.
 Currently, if your post `foo` has 25 comments with comments_per_page=10,
 the pages will have the following comments:

 * `foo` (or `foo/comment-page-3`): 21-25
 * `foo/comment-page-2`: 11-20
 * `foo/comment-page-1`: 1-10

 I propose that, instead of treating `foo` and `foo/comment-page-3` the
 same way, we do the following:

 * When you visit `foo/comment-page-3`, you will continue to see 21-25.
 * Comment permalinks will continue to have `foo/comment-page-3`, even when
 `foo/comment-page-3` == `foo`
 * However, when viewing `foo`, we'll combine pages 2 and 3 of comments. So
 you'll see 11-25. This ensures that you don't have a page with just a
 small handful of comments.

 I think this addresses the root issue - that it's ugly to have the 51st
 comment spill onto its own page - while still maintaining permalinks. What
 do others think?

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


More information about the wp-trac mailing list