WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/30/2015 01:34:54 AM (6 years ago)
Author:
boonebgorges
Message:

Improve lazyloading of comment meta in WP_Query loops.

Lazy-loading logic is moved to a method on WP_Query. This makes it possible
for comment feeds to take advantage of metadata lazyloading, in addition to
comments loaded via comments_template().

This new technique parallels the termmeta lazyloading technique introduced in
[34704].

Fixes #34047.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r34704 r34711  
    201201add_filter( 'xmlrpc_pingback_error',    'xmlrpc_pingback_error'               );
    202202add_filter( 'title_save_pre',           'trim'                                );
    203 add_filter( 'get_comment_metadata',     'wp_lazyload_comment_meta',     10, 2 );
    204203
    205204add_filter( 'http_request_host_is_external', 'allowed_http_request_hosts', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.