Changeset 58614 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 07/02/2024 10:01:17 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r58578 r58614 1047 1047 1048 1048 /** 1049 * Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the wrapper block. 1050 * 1051 * @since 6.7.0 1052 * @access private 1053 * 1054 * @see remove_serialized_parent_block() 1055 * 1056 * @param string $serialized_block The serialized markup of a block and its inner blocks. 1057 * @return string The serialized markup of the wrapper block. 1058 */ 1059 function extract_serialized_parent_block( $serialized_block ) { 1060 $start = strpos( $serialized_block, '-->' ) + strlen( '-->' ); 1061 $end = strrpos( $serialized_block, '<!--' ); 1062 return substr( $serialized_block, 0, $start ) . substr( $serialized_block, $end ); 1063 } 1064 1065 /** 1049 1066 * Updates the wp_postmeta with the list of ignored hooked blocks where the inner blocks are stored as post content. 1050 1067 * Currently only supports `wp_navigation` post types.
Note: See TracChangeset
for help on using the changeset viewer.