[wp-trac] [WordPress Trac] #56186: get_page_of_comment doesn't work on descending order for comments

WordPress Trac noreply at wordpress.org
Wed Jul 20 05:03:50 UTC 2022


#56186: get_page_of_comment doesn't work on descending order for comments
--------------------------+----------------------
 Reporter:  ali11007      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Comments      |     Version:  trunk
 Severity:  normal        |  Resolution:  invalid
 Keywords:  has-patch     |     Focuses:
--------------------------+----------------------
Changes (by peterwilsoncc):

 * milestone:  Awaiting Review =>


Comment:

 Ali reached out via Slack. Given #39280 and #31101 it seems that the
 comment pagination is working as expected, even if it is a little counter
 intuitive.

 In order for `get_comment_link()` to return permanent, consistent values
 that page numbers need to be the same regardless of how the display is
 ordered: oldest first or newest first.

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


More information about the wp-trac mailing list