WordPress/wp-includes
Boone Gorges b2f253fc8e Prevent extra db queries in WP_Comment::get_children().
`WP_Comment_Query::fill_descendants()` queries for a comment tree in a way that
minimizes database overhead, and places the located descendants with their
proper parents. However, it doesn't touch leaf nodes - comments with no
children - so future calls to `get_children()` on those comment objects
result in unnecessary database queries. To prevent this, `fill_descendants()`
now sets a `populated_children` flag on all located `WP_Comment` objects.

See #8071.
Built from https://develop.svn.wordpress.org/trunk@34730


git-svn-id: http://core.svn.wordpress.org/trunk@34694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-01 03:58:23 +00:00
..
2015-07-23 10:03:24 +00:00
2015-06-28 00:17:25 +00:00
2015-06-28 15:27:24 +00:00
2015-06-28 15:27:24 +00:00
2015-09-26 07:04:28 +00:00
2015-09-26 07:04:28 +00:00
2015-09-26 07:04:28 +00:00
2015-09-22 13:44:25 +00:00
2015-06-16 20:01:25 +00:00
2015-09-22 13:03:24 +00:00