[wp-trac] [WordPress Trac] #35378: Incorrect comment ordering when comment threading is turned off
WordPress Trac
noreply at wordpress.org
Fri Jan 8 21:35:39 UTC 2016
#35378: Incorrect comment ordering when comment threading is turned off
--------------------------+-----------------------------
Reporter: jmdodd | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 4.4
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
`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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35378>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list