From 54462dead936cb2d20b8b5efbaa7b246cc27652c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= Date: Fri, 14 May 2021 15:47:18 +0300 Subject: [PATCH] Revert "Fix Post Featured Image placeholder regression (#31709)" This reverts commit 6abd194a333beccff54f031fa8b396578d7ae4ff. --- packages/block-library/src/post-featured-image/edit.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/block-library/src/post-featured-image/edit.js b/packages/block-library/src/post-featured-image/edit.js index d6ecda6422d44..3acbef2776273 100644 --- a/packages/block-library/src/post-featured-image/edit.js +++ b/packages/block-library/src/post-featured-image/edit.js @@ -119,14 +119,10 @@ function PostFeaturedImageDisplay( { const PostFeaturedImageWithNotices = withNotices( PostFeaturedImageDisplay ); -const OutofContextPlaceholder = () => { - const blockProps = useBlockProps(); - return
{ placeholderChip }
; -}; - export default function PostFeaturedImageEdit( props ) { + const blockProps = useBlockProps(); if ( ! props.context?.postId ) { - return ; + return
{ placeholderChip }
; } return ; }