[wp-trac] [WordPress Trac] #16894: Bulk load Comment Meta upon access
WordPress Trac
noreply at wordpress.org
Sat Sep 5 22:24:18 UTC 2015
#16894: Bulk load Comment Meta upon access
------------------------------+--------------------------
Reporter: dd32 | Owner: bradt
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Comments | Version: 3.1
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: performance
------------------------------+--------------------------
Changes (by wonderboymusic):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"33925"]:
{{{
#!CommitTicketReference repository="" revision="33925"
In `wp_list_comments()`, update the comment meta cache when the comments
derive from `WP_Query` and the new `->comment_meta_cached` prop is
`false`.
There are no uses of `wp_list_comments()` in Core where `$comments` are
passed as the 2nd argument.
Adds unit tests.
Props wonderboymusic, bradt.
Fixes #16894.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16894#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list