Changeset 58291
- Timestamp:
- 06/03/2024 12:03:53 PM (2 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template-utils.php
r58268 r58291 1600 1600 } 1601 1601 1602 $before_block_visitor = make_before_block_visitor( $hooked_blocks, $template, 'set_ignored_hooked_blocks_metadata' ); 1603 $after_block_visitor = make_after_block_visitor( $hooked_blocks, $template, 'set_ignored_hooked_blocks_metadata' ); 1604 1605 $blocks = parse_blocks( $changes->post_content ); 1606 $changes->post_content = traverse_and_serialize_blocks( $blocks, $before_block_visitor, $after_block_visitor ); 1602 $changes->post_content = apply_block_hooks_to_content( $changes->post_content, $template, 'set_ignored_hooked_blocks_metadata' ); 1607 1603 1608 1604 return $changes; -
trunk/src/wp-includes/blocks.php
r58247 r58291 1004 1004 1005 1005 /** 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1006 1119 * Returns the markup for blocks hooked to the given anchor block in a specific relative position and then 1007 1120 * adds a list of hooked block types to an anchor block's ignored hooked block types. 1008 1121 * 1009 1122 * This function is meant for internal use only. 1010 *1011 * @since 6.6.01012 * @access private1013 1123 * 1014 1124 * @param array $parsed_anchor_block The anchor block, in parsed block array format. … … 1020 1130 */ 1021 1131 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 );1132 $markup = insert_hooked_blocks( $parsed_anchor_block, $relative_position, $hooked_blocks, $context ); 1023 1133 $markup .= set_ignored_hooked_blocks_metadata( $parsed_anchor_block, $relative_position, $hooked_blocks, $context ); 1024 1134 -
trunk/src/wp-includes/default-filters.php
r57920 r58291 758 758 add_filter( 'rest_pre_insert_wp_template_part', 'inject_ignored_hooked_blocks_metadata_attributes' ); 759 759 760 761 762 760 763 unset( $filter, $action );
Note: See TracChangeset
for help on using the changeset viewer.