diff --git a/wp-includes/block-template-utils.php b/wp-includes/block-template-utils.php index fe43d89564..3c6850bd32 100644 --- a/wp-includes/block-template-utils.php +++ b/wp-includes/block-template-utils.php @@ -1602,6 +1602,10 @@ function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated _deprecated_argument( __FUNCTION__, '6.5.3' ); } + if ( ! isset( $changes->post_content ) ) { + return $changes; + } + $hooked_blocks = get_hooked_blocks(); if ( empty( $hooked_blocks ) && ! has_filter( 'hooked_block_types' ) ) { return $changes; diff --git a/wp-includes/version.php b/wp-includes/version.php index 768d88bed2..2cbeba7ab7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58784'; +$wp_version = '6.7-alpha-58785'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.