From 94b66db46af36fc0f32a02424fb845e145654c5c Mon Sep 17 00:00:00 2001 From: Martin Weber Date: Sun, 25 Jan 2026 14:16:53 +0100 Subject: [PATCH] Prevent error with tribe_events - If tribe_events block editor is enabled, opengraph throws an exception --- opengraph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opengraph.php b/opengraph.php index 10ddd88..643eed6 100644 --- a/opengraph.php +++ b/opengraph.php @@ -313,7 +313,7 @@ function opengraph_block_image( $image = array() ) { } // Get the first image in the post content. - $blocks = parse_blocks( get_the_content( null, false ) ); + $blocks = parse_blocks( get_the_content( null, false, false ) ); foreach ( $blocks as $block ) { if ( count( $image ) >= opengraph_max_images() ) { break;