Skip to content

Commit c5864b8

Browse files
committed
Add back missing wp_json_encode
1 parent a7dd1cf commit c5864b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/blocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ function insert_hooked_blocks_into_rest_response( $response, $post ) {
14811481
);
14821482

14831483
if ( ! empty( $ignored_hooked_blocks_at_root ) ) {
1484-
$response->data['meta']['_wp_ignored_hooked_blocks'] = $ignored_hooked_blocks_at_root;
1484+
$response->data['meta']['_wp_ignored_hooked_blocks'] = wp_json_encode( $ignored_hooked_blocks_at_root );
14851485
}
14861486

14871487
// If the rendered content was previously empty, we leave it like that.

0 commit comments

Comments
 (0)