[wp-trac] [WordPress Trac] #35068: Comments not showing up when there are unapproved messages

WordPress Trac noreply at wordpress.org
Mon Dec 14 08:05:32 UTC 2015


#35068: Comments not showing up when there are unapproved messages
--------------------------+-----------------------------
 Reporter:  arash_hemmat  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi,

 The problem occurs when there are some unapproved messages for a post.
 If (sum of the root comments for a post (approved and unapproved) divided
 by the number of root comments in page) is more than the shown pagination
 number on the page, the comments have_comments() function returns false.

 In my situation, the number of comments per page is set to 20, showing
 last page by default, displaying newest comments.
 For example my post had 33 approved comments and 8 unapproved comments.
 The problem occurred when the eighth unapproved comment was added, the
 problem was resolved when all the eight were approved or one of them was
 deleted (sum of the comments would be 40 again)

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


More information about the wp-trac mailing list