diff --git a/lib/block-supports/elements.php b/lib/block-supports/elements.php index 880ee1afa3baf..f3b7891f107d6 100644 --- a/lib/block-supports/elements.php +++ b/lib/block-supports/elements.php @@ -13,6 +13,11 @@ * @return string Filtered block content. */ function gutenberg_render_elements_support( $block_content, $block ) { + + if ( ! $block_content ) { + return $block_content; + } + $link_color = null; if ( ! empty( $block['attrs'] ) ) { $link_color = _wp_array_get( $block['attrs'], array( 'style', 'elements', 'link', 'color', 'text' ), null );