mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 16:43:06 +01:00
comments_template()
, don't run hierarchical queries if comment threading is disabled.
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
Description
No description provided
Languages
PHP
81.5%
CSS
8.9%
JavaScript
8.1%
SCSS
0.8%
HTML
0.7%