Changeset 50929 for trunk/src/wp-includes/block-supports/layout.php
- Timestamp:
- 05/19/2021 03:07:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/layout.php
r50761 r50929 15 15 * @access private 16 16 * 17 * @param string $block_content Rendered block content. 18 * @param array $block Block object. 19 * @return string Filtered block content. 17 * @param string $block_content Rendered block content. 18 * @param array $block Block object. 19 * 20 * @return string Filtered block content. 20 21 */ 21 22 function wp_restore_group_inner_container( $block_content, $block ) { 22 23 $group_with_inner_container_regex = '/(^\s*<div\b[^>]*wp-block-group(\s|")[^>]*>)(\s*<div\b[^>]*wp-block-group__inner-container(\s|")[^>]*>)((.|\S|\s)*)/'; 23 24 25 // TODO: Add check for theme.json presence. 24 26 if ( 25 27 'core/group' !== $block['blockName'] ||
Note: See TracChangeset
for help on using the changeset viewer.