Opened 6 years ago
Closed 6 years ago
#35378 closed defect (bug) (fixed)
Incorrect comment ordering when comment threading is turned off
Reported by: | jmdodd | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.4.2 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Comments | Keywords: | fixed-major |
Focuses: | template | Cc: |
Description
comments_template()
performs all comment queries with $comment_args['hierarchical'] = 'threaded'
rather than checking the site option for thread_comments
. When comment display is no longer threaded, the comments appear in flattened hierarchical order rather than chronologically. This is a regression from 4.3.2, where turning off threading resulted in comments ordered chronologically.
A conditional check also needs to be added prior to getting each comment's children. This operation is only needed when the array of $_comments
contains only top-level comments.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
@jmdodd Thanks for the ticket and the patch!