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

WordPress Trac noreply at wordpress.org
Sat Jul 9 12:25:01 UTC 2022


#56186: get_page_of_comment doesn't work on descending order for comments
--------------------------+-----------------------------
 Reporter:  ali11007      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In the code of the function the **date_query**'s argument is always
 **before**. As a result it always returns the page number based on
 ascending order, but it should be conditional to the option
 **comment_order**. Obviously using **after** for descending order will fix
 this.

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


More information about the wp-trac mailing list