From c6821d7e64a54eb322583a35daedc6c192ece850 Mon Sep 17 00:00:00 2001 From: Phil Johnston Date: Fri, 21 Feb 2020 10:38:43 -0500 Subject: [PATCH] Remove prepend_attachment from filters run on content for post template parts (#20360) Remove prepend_attachment from filters run on content for post template parts #20342 --- packages/block-library/src/template-part/index.php | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/block-library/src/template-part/index.php b/packages/block-library/src/template-part/index.php index e7cdd5a5f7d01..1a2c4403ba10f 100644 --- a/packages/block-library/src/template-part/index.php +++ b/packages/block-library/src/template-part/index.php @@ -39,7 +39,6 @@ function render_block_core_template_part( $attributes ) { $content = convert_smilies( $content ); $content = wpautop( $content ); $content = shortcode_unautop( $content ); - $content = prepend_attachment( $content ); $content = wp_make_content_images_responsive( $content ); $content = do_shortcode( $content );