[wp-trac] [WordPress Trac] #37416: In WP_Comment_Query::fill_descendants() compute the size beforehand and not on each iteration
WordPress Trac
noreply at wordpress.org
Tue Jul 19 19:32:28 UTC 2016
#37416: In WP_Comment_Query::fill_descendants() compute the size beforehand and not
on each iteration
--------------------------+----------------------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Future Release
Component: Comments | Version: 4.4
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: performance |
--------------------------+----------------------------------------
Source: https://core.trac.wordpress.org/browser/trunk/src/wp-includes
/class-wp-comment-query.php?rev=38001&marks=1015#L1013
Currently `count()` is called on each iteration.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37416>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list