<?php
function render_block_core_post_content( $attributes, $content, $block ) {
static $seen_ids = array();
if ( ! isset( $block->context['postId'] ) ) {
return '';
}
$post_id = $block->context['postId'];
if ( isset( $seen_ids[ $post_id ] ) ) {
$is_debug = WP_DEBUG && WP_DEBUG_DISPLAY;
return $is_debug ?
__( '[block rendering halted]' ) :
'';
}
$seen_ids[ $post_id ] = true;
$content = get_the_content();
if ( has_block( 'core/nextpage' ) ) {