diff --git a/packages/block-library/src/post-content/index.php b/packages/block-library/src/post-content/index.php index 400e3068dfa0a..374746d2744fd 100644 --- a/packages/block-library/src/post-content/index.php +++ b/packages/block-library/src/post-content/index.php @@ -17,6 +17,9 @@ function render_block_core_post_content( $attributes, $content, $block ) { static $seen_ids = array(); if ( ! isset( $block->context['postId'] ) ) { + if ( is_404() ) { + return __( 'It looks like nothing was found at this location.' ); + } return ''; }