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]. Built from https://develop.svn.wordpress.org/trunk@53214 git-svn-id: http://core.svn.wordpress.org/trunk@52803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5cc972ba4a
commit
ec0574144a
|
@ -1397,7 +1397,6 @@ function build_comment_query_vars_from_block( $block ) {
|
|||
'order' => 'ASC',
|
||||
'status' => 'approve',
|
||||
'no_found_rows' => false,
|
||||
'update_comment_meta_cache' => false, // We lazy-load comment meta for performance.
|
||||
);
|
||||
|
||||
if ( ! empty( $block->context['postId'] ) ) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-beta1-53213';
|
||||
$wp_version = '6.0-beta1-53214';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue