Changeset 59761 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 02/04/2025 08:59:04 AM (9 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r59543 r59761 2639 2639 } 2640 2640 if ( ! empty( $block->context['query']['parents'] ) && is_post_type_hierarchical( $query['post_type'] ) ) { 2641 $query['post_parent__in'] = array_ filter( array_map( 'intval', $block->context['query']['parents'] ) );2641 $query['post_parent__in'] = array_unique( array_map( 'intval', $block->context['query']['parents'] ) ); 2642 2642 } 2643 2643 }
Note: See TracChangeset
for help on using the changeset viewer.