diff --git a/lib/block-supports/index.php b/lib/block-supports/index.php index e5291cddc3a2f..77ccfdb843cd9 100644 --- a/lib/block-supports/index.php +++ b/lib/block-supports/index.php @@ -57,13 +57,9 @@ function gutenberg_apply_block_supports( $block_content, $block ) { // Suppress DOMDocument::loadHTML warnings from polluting the front-end. $previous = libxml_use_internal_errors( true ); - $body_id = '__BLOCK_SUPPORTS_INJECTED_BODY_ID__'; - // We need to wrap the block in order to handle UTF-8 properly. $wrapped_block_html = - '
' + '' . $block_content . ''; @@ -77,7 +73,8 @@ function gutenberg_apply_block_supports( $block_content, $block ) { return $block_content; } - $body_element = $dom->getElementByID( $body_id ); + // Structure is like `