Make WordPress Core


Ignore:
Timestamp:
04/19/2022 12:37:53 PM (2 years ago)
Author:
gziolo
Message:

Editor: Fix Comment Query block isn't lazy loading meta data

Related GitHub issue: https://github.com/WordPress/gutenberg/issues/40241.
Primes comment meta data cache within calls to WP_Comment_Query.

Props peterwilsoncc, cbravobernal.
See #55567.
Follow-up [53138].

File:
1 edited

Legend:

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

    r53211 r53214  
    13981398        'status'                    => 'approve',
    13991399        'no_found_rows'             => false,
    1400         'update_comment_meta_cache' => false, // We lazy-load comment meta for performance.
    14011400    );
    14021401
Note: See TracChangeset for help on using the changeset viewer.