Changeset 58186 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 05/23/2024 06:33:11 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r58084 r58186 859 859 * @access private 860 860 * 861 * @param array $parsed_anchor_block The anchor block, in parsed block array format.862 * @param string $relative_position The relative position of the hooked blocks.863 * Can be one of 'before', 'after', 'first_child', or 'last_child'.864 * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position.865 * @param WP_Block_Template| array $context The block template, template part, or pattern that the anchor block belongs to.861 * @param array $parsed_anchor_block The anchor block, in parsed block array format. 862 * @param string $relative_position The relative position of the hooked blocks. 863 * Can be one of 'before', 'after', 'first_child', or 'last_child'. 864 * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position. 865 * @param WP_Block_Template|WP_Post|array $context The block template, template part, or pattern that the anchor block belongs to. 866 866 * @return string 867 867 */ … … 950 950 * @access private 951 951 * 952 * @param array $parsed_anchor_block The anchor block, in parsed block array format.953 * @param string $relative_position The relative position of the hooked blocks.954 * Can be one of 'before', 'after', 'first_child', or 'last_child'.955 * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position.956 * @param WP_Block_Template| array $context The block template, template part, or pattern that the anchor block belongs to.957 * @return string An empty string.952 * @param array $parsed_anchor_block The anchor block, in parsed block array format. 953 * @param string $relative_position The relative position of the hooked blocks. 954 * Can be one of 'before', 'after', 'first_child', or 'last_child'. 955 * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position. 956 * @param WP_Block_Template|WP_Post|array $context The block template, template part, or pattern that the anchor block belongs to. 957 * @return string Empty string. 958 958 */ 959 959 function set_ignored_hooked_blocks_metadata( &$parsed_anchor_block, $relative_position, $hooked_blocks, $context ) { … … 1001 1001 // Markup for the hooked blocks has already been created (in `insert_hooked_blocks`). 1002 1002 return ''; 1003 } 1004 1005 /** 1006 * Returns the markup for blocks hooked to the given anchor block in a specific relative position and then 1007 * adds a list of hooked block types to an anchor block's ignored hooked block types. 1008 * 1009 * This function is meant for internal use only. 1010 * 1011 * @since 6.6.0 1012 * @access private 1013 * 1014 * @param array $parsed_anchor_block The anchor block, in parsed block array format. 1015 * @param string $relative_position The relative position of the hooked blocks. 1016 * Can be one of 'before', 'after', 'first_child', or 'last_child'. 1017 * @param array $hooked_blocks An array of hooked block types, grouped by anchor block and relative position. 1018 * @param WP_Block_Template|WP_Post|array $context The block template, template part, or pattern that the anchor block belongs to. 1019 * @return string 1020 */ 1021 function insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata( &$parsed_anchor_block, $relative_position, $hooked_blocks, $context ) { 1022 $markup = insert_hooked_blocks( $parsed_anchor_block, $relative_position, $hooked_blocks, $context ); 1023 $markup .= set_ignored_hooked_blocks_metadata( $parsed_anchor_block, $relative_position, $hooked_blocks, $context ); 1024 1025 return $markup; 1003 1026 } 1004 1027
Note: See TracChangeset
for help on using the changeset viewer.