diff --git a/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php b/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php index 6bb9ba6895..b81514a485 100644 --- a/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php +++ b/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php @@ -949,7 +949,7 @@ function( $block ) { $parent = array_filter( $blocks, function( $block ) { - return ! isset( $block->parent ) || ! count( $block->parent ); + return ! isset( $block->parent ) || ! count( $block->parent ) || ! isset( $block->ancestor ) || ! count( $block->ancestor ); } );