Skip to content

Commit fc24575

Browse files
committed
use WP_Post
1 parent 01c2a36 commit fc24575

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parser/block-additions/core-block.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
defined( 'ABSPATH' ) || die();
1111

1212
use WP_Block;
13+
use WP_Post;
1314
use WPCOMVIP\BlockDataApi\ContentParser;
1415

1516
use function add_filter;
@@ -84,7 +85,7 @@ public static function get_inner_blocks( array $inner_blocks, string $block_name
8485
$parser = new ContentParser();
8586
$post = get_post( $parsed_block['attrs']['ref'] );
8687

87-
if ( ! $post instanceof \WP_Post ) {
88+
if ( ! $post instanceof WP_Post ) {
8889
return [];
8990
}
9091

0 commit comments

Comments
 (0)