[wp-trac] [WordPress Trac] #51305: wp_list_comments returns nothing if "per_page" parameter is defined

WordPress Trac noreply at wordpress.org
Sat Dec 12 16:24:42 UTC 2020


#51305: wp_list_comments returns nothing if "per_page" parameter is defined
------------------------------------------+------------------------------
 Reporter:  SGr33n                        |       Owner:  metalandcoffee
     Type:  defect (bug)                  |      Status:  assigned
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Comments                      |     Version:  5.5.1
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------
Changes (by metalandcoffee):

 * owner:  (none) => metalandcoffee
 * status:  new => assigned


Comment:

 Hi @SGr33n - I tried to reproduce this error by calling `wp_list_comments(
 array( 'per_page' => 1 ) );` but I'm not getting any PHP notices when this
 happens. Can you give steps to reproduce and provide all of the parameters
 you're using in `wp_list_comments`? How many comments are you expecting to
 see on the post in question? What is your PHP version?

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


More information about the wp-trac mailing list