Skip to content

Commit 2a98f52

Browse files
committed
Add @SInCE PHPDoc
1 parent c5864b8 commit 2a98f52

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/wp-includes/blocks.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,7 @@ function apply_block_hooks_to_content( $content, $context = null, $callback = 'i
11961196
* of the block that corresponds to the post type are handled correctly.
11971197
*
11981198
* @since 6.8.0
1199+
* @since 7.0.0 Added the `$ignored_hooked_blocks_at_root` parameter.
11991200
* @access private
12001201
*
12011202
* @param string $content Serialized content.
@@ -1210,7 +1211,12 @@ function apply_block_hooks_to_content( $content, $context = null, $callback = 'i
12101211
* Default: `null`.
12111212
* @return string The serialized markup.
12121213
*/
1213-
function apply_block_hooks_to_content_from_post_object( $content, $post = null, $callback = 'insert_hooked_blocks', &$ignored_hooked_blocks_at_root = null ) {
1214+
function apply_block_hooks_to_content_from_post_object(
1215+
$content,
1216+
$post = null,
1217+
$callback = 'insert_hooked_blocks',
1218+
&$ignored_hooked_blocks_at_root = null
1219+
) {
12141220
// Default to the current post if no context is provided.
12151221
if ( null === $post ) {
12161222
$post = get_post();
@@ -1462,6 +1468,7 @@ function insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata( &$parsed_a
14621468
*
14631469
* @since 6.6.0
14641470
* @since 6.8.0 Support non-`wp_navigation` post types.
1471+
* @since 7.0.0 Set `_wp_ignored_hooked_blocks` meta in the response for blocks hooked at the root level.
14651472
*
14661473
* @param WP_REST_Response $response The response object.
14671474
* @param WP_Post $post Post object.

0 commit comments

Comments
 (0)