mirror of
git://develop.git.wordpress.org/
synced 2025-03-19 19:39:51 +01:00
When hierarchical=true, `WP_Comment_Query` will always fetch comments according to the comment hierarchy, even if 'thread_comments' is disabled for the site. This can cause problems when comment threading is disabled after threaded comments have been recorded on the site; comments will no longer be returned in a strictly chronological order. We address the issue by refraining from querying hierarchically when comment threading is disabled. Props jmdodd. Fixes #35378. git-svn-id: https://develop.svn.wordpress.org/trunk@36226 602fd350-edb4-49c9-b593-d223f7449a82