diff --git a/packages/block-library/src/post-content/index.php b/packages/block-library/src/post-content/index.php index 6a8b2df5ad5ba0..4ed0103e8229c1 100644 --- a/packages/block-library/src/post-content/index.php +++ b/packages/block-library/src/post-content/index.php @@ -11,6 +11,11 @@ * @return string Returns the filtered post content of the current post. */ function render_block_core_post_content() { + // TODO: Without this temporary fix, an infinite loop can occur. + if ( is_admin() || defined( 'REST_REQUEST' ) ) { + return ''; + } + if ( ! in_the_loop() ) { rewind_posts(); the_post();