Changeset 56674
- Timestamp:
- 09/25/2023 09:12:08 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r56673 r56674 819 819 $hooked_block_types = apply_filters( 'hooked_block_types', $hooked_block_types, $relative_position, $anchor_block_type, $context ); 820 820 foreach ( $hooked_block_types as $hooked_block_type ) { 821 $hooked_block_markup = get_comment_delimited_block_content( $hooked_block_type, array(), '' ); 822 /** This filter is documented in wp-includes/blocks.php */ 823 $markup .= apply_filters( 'inject_hooked_block_markup', $hooked_block_markup, $hooked_block_type, $relative_position, $parent, $context ); 821 $markup .= get_comment_delimited_block_content( $hooked_block_type, array(), '' ); 824 822 } 825 823 } … … 831 829 $hooked_block_types = apply_filters( 'hooked_block_types', $hooked_block_types, $relative_position, $anchor_block_type, $context ); 832 830 foreach ( $hooked_block_types as $hooked_block_type ) { 833 $hooked_block_markup = get_comment_delimited_block_content( $hooked_block_type, array(), '' ); 834 /** 835 * Filters the serialized markup of a hooked block. 836 * 837 * @since 6.4.0 838 * 839 * @param string $hooked_block_markup The serialized markup of the hooked block. 840 * @param string $hooked_block_type The type of the hooked block. 841 * @param string $relative_position The relative position of the hooked block. 842 * Can be one of 'before', 'after', 'first_child', or 'last_child'. 843 * @param array $block The anchor block. 844 * @param WP_Block_Template|array $context The block template, template part, or pattern that the anchor block belongs to. 845 */ 846 $markup .= apply_filters( 'inject_hooked_block_markup', $hooked_block_markup, $hooked_block_type, $relative_position, $block, $context ); 831 $markup .= get_comment_delimited_block_content( $hooked_block_type, array(), '' ); 847 832 } 848 833 … … 886 871 $hooked_block_types = apply_filters( 'hooked_block_types', $hooked_block_types, $relative_position, $anchor_block_type, $context ); 887 872 foreach ( $hooked_block_types as $hooked_block_type ) { 888 $hooked_block_markup = get_comment_delimited_block_content( $hooked_block_type, array(), '' ); 889 /** This filter is documented in wp-includes/blocks.php */ 890 $markup .= apply_filters( 'inject_hooked_block_markup', $hooked_block_markup, $hooked_block_type, $relative_position, $block, $context ); 873 $markup .= get_comment_delimited_block_content( $hooked_block_type, array(), '' ); 891 874 } 892 875 … … 899 882 $hooked_block_types = apply_filters( 'hooked_block_types', $hooked_block_types, $relative_position, $anchor_block_type, $context ); 900 883 foreach ( $hooked_block_types as $hooked_block_type ) { 901 $hooked_block_markup = get_comment_delimited_block_content( $hooked_block_type, array(), '' ); 902 /** This filter is documented in wp-includes/blocks.php */ 903 $markup .= apply_filters( 'inject_hooked_block_markup', $hooked_block_markup, $hooked_block_type, $relative_position, $parent, $context ); 884 $markup .= get_comment_delimited_block_content( $hooked_block_type, array(), '' ); 904 885 } 905 886 }
Note: See TracChangeset
for help on using the changeset viewer.