[wp-trac] [WordPress Trac] #35572: Custom $comment & page & per_page in wp_list_comments hide all

WordPress Trac noreply at wordpress.org
Fri Jan 22 11:43:32 UTC 2016


#35572: Custom $comment & page & per_page in wp_list_comments hide all
--------------------------+-----------------------------
 Reporter:  sibputnik     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  4.4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is a follow-up to #35175.

 Hi. After fix above, when u pass custom $comments to wp_list_comments and
 set custom page and per_page, nothing is shown. I found in when try use
 "Show All Comments" plugin https://wordpress.org/plugins/show-all-
 comments-in-one-page/ . It show all comments in single page.

 As seen in code, this plugin get all comments and pass it to
 wp_list_comments. Because it use custom page and per_page,
 wp_list_comments fetch comments again for current page. Also, it is no
 comments in page and we have empty list.

 I do not know right way to fix this. May be custom field in
 wp_list_comments or any other way to detect custom $comment, that not need
 to be changed.

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


More information about the wp-trac mailing list