[wp-trac] [WordPress Trac] #31101: get_page_of_comment returns wrong page if comments are ordered with newest first

WordPress Trac noreply at wordpress.org
Mon Jun 20 19:46:10 UTC 2016


#31101: get_page_of_comment returns wrong page if comments are ordered with newest
first
--------------------------+------------------------------
 Reporter:  pajtai        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by rachelbaker):

 @boonebgorges Came across this ticket while bug gardening, it looks as
 though `get_page_of_comment()` does not take
 `get_option('comment_order');` into account.

 In `wp_list_comments()` the page variable is handled with a special
 `reverse_top_level` argument, but I don't see the `comment_order` option
 considered anywhere else.  Do you know if there is a reason for this?

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


More information about the wp-trac mailing list