From 77a4366a2d1dee90df2dab4598bb888e276231a6 Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Tue, 3 Jul 2018 08:41:59 -0400 Subject: [PATCH] move filter to PostFeaturedImage --- edit-post/components/sidebar/featured-image/index.js | 3 +-- editor/components/post-featured-image/index.js | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/edit-post/components/sidebar/featured-image/index.js b/edit-post/components/sidebar/featured-image/index.js index fc0e30e0a0f20..9d979dbf6affd 100644 --- a/edit-post/components/sidebar/featured-image/index.js +++ b/edit-post/components/sidebar/featured-image/index.js @@ -7,7 +7,7 @@ import { get, partial } from 'lodash'; * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { PanelBody, withFilters } from '@wordpress/components'; +import { PanelBody } from '@wordpress/components'; import { PostFeaturedImage, PostFeaturedImageCheck } from '@wordpress/editor'; import { compose } from '@wordpress/element'; import { withSelect, withDispatch } from '@wordpress/data'; @@ -57,5 +57,4 @@ const applyWithDispatch = withDispatch( ( dispatch ) => { export default compose( applyWithSelect, applyWithDispatch, - withFilters( 'editor.FeaturedImage' ), )( FeaturedImage ); diff --git a/editor/components/post-featured-image/index.js b/editor/components/post-featured-image/index.js index 0557e48734589..779c3d7df6f1a 100644 --- a/editor/components/post-featured-image/index.js +++ b/editor/components/post-featured-image/index.js @@ -7,7 +7,7 @@ import { get } from 'lodash'; * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { Button, Spinner, ResponsiveWrapper } from '@wordpress/components'; +import { Button, Spinner, ResponsiveWrapper, withFilters } from '@wordpress/components'; import { compose } from '@wordpress/element'; import { withSelect, withDispatch } from '@wordpress/data'; @@ -114,4 +114,5 @@ const applyWithDispatch = withDispatch( ( dispatch ) => { export default compose( applyWithSelect, applyWithDispatch, + withFilters( 'editor.PostFeaturedImage' ), )( PostFeaturedImage );