diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 25a4a7e3b2..c09321edfa 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -2638,7 +2638,7 @@ function build_query_vars_from_query_block( $block, $page ) { $query['s'] = $block->context['query']['search']; } if ( ! empty( $block->context['query']['parents'] ) && is_post_type_hierarchical( $query['post_type'] ) ) { - $query['post_parent__in'] = array_filter( array_map( 'intval', $block->context['query']['parents'] ) ); + $query['post_parent__in'] = array_unique( array_map( 'intval', $block->context['query']['parents'] ) ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 082d043fbf..ca1441ade0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59760'; +$wp_version = '6.8-alpha-59761'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.