Changeset 52797 for trunk/src/wp-includes/media.php
- Timestamp:
- 02/25/2022 12:42:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r52725 r52797 4781 4781 } 4782 4782 4783 // All blocks nested inside non-Gallery blocks should be in the root array. 4784 if ( $has_inner_blocks && 'core/gallery' !== $block['blockName'] ) { 4785 array_push( $post_blocks, ...$block['innerBlocks'] ); 4783 // Skip non-Gallery blocks. 4784 if ( 'core/gallery' !== $block['blockName'] ) { 4785 // Move inner blocks into the root array before skipping. 4786 if ( $has_inner_blocks ) { 4787 array_push( $post_blocks, ...$block['innerBlocks'] ); 4788 } 4786 4789 continue; 4787 4790 }
Note: See TracChangeset
for help on using the changeset viewer.