Changeset 53006 for branches/5.9/src/wp-includes/media.php
- Timestamp:
- 03/28/2022 08:51:00 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/wp-includes/media.php
r52425 r53006 4780 4780 } 4781 4781 4782 // All blocks nested inside non-Gallery blocks should be in the root array. 4783 if ( $has_inner_blocks && 'core/gallery' !== $block['blockName'] ) { 4784 array_push( $post_blocks, ...$block['innerBlocks'] ); 4782 // Skip non-Gallery blocks. 4783 if ( 'core/gallery' !== $block['blockName'] ) { 4784 // Move inner blocks into the root array before skipping. 4785 if ( $has_inner_blocks ) { 4786 array_push( $post_blocks, ...$block['innerBlocks'] ); 4787 } 4785 4788 continue; 4786 4789 }
Note: See TracChangeset
for help on using the changeset viewer.