diff --git a/packages/editor/src/components/post-comments/index.js b/packages/editor/src/components/post-comments/index.js index 1615534a2eeab2..9cbae279d2bbcf 100644 --- a/packages/editor/src/components/post-comments/index.js +++ b/packages/editor/src/components/post-comments/index.js @@ -3,10 +3,10 @@ */ import { __ } from '@wordpress/i18n'; import { CheckboxControl } from '@wordpress/components'; -import { withInstanceId, compose } from '@wordpress/compose'; +import { compose } from '@wordpress/compose'; import { withSelect, withDispatch } from '@wordpress/data'; -function PostComments( { commentStatus = 'open', instanceId, ...props } ) { +function PostComments( { commentStatus = 'open', ...props } ) { const onToggleComments = () => props.editPost( { comment_status: commentStatus === 'open' ? 'closed' : 'open' } ); return ( @@ -27,5 +27,4 @@ export default compose( [ withDispatch( ( dispatch ) => ( { editPost: dispatch( 'core/editor' ).editPost, } ) ), - withInstanceId, ] )( PostComments ); diff --git a/packages/editor/src/components/post-pending-status/index.js b/packages/editor/src/components/post-pending-status/index.js index 544ea76cab8e40..7712956b5955c0 100644 --- a/packages/editor/src/components/post-pending-status/index.js +++ b/packages/editor/src/components/post-pending-status/index.js @@ -4,14 +4,14 @@ import { __ } from '@wordpress/i18n'; import { CheckboxControl } from '@wordpress/components'; import { withSelect, withDispatch } from '@wordpress/data'; -import { withInstanceId, compose } from '@wordpress/compose'; +import { compose } from '@wordpress/compose'; /** * Internal dependencies */ import PostPendingStatusCheck from './check'; -export function PostPendingStatus( { instanceId, status, onUpdateStatus } ) { +export function PostPendingStatus( { status, onUpdateStatus } ) { const togglePendingStatus = () => { const updatedStatus = status === 'pending' ? 'draft' : 'pending'; onUpdateStatus( updatedStatus ); @@ -37,5 +37,4 @@ export default compose( dispatch( 'core/editor' ).editPost( { status } ); }, } ) ), - withInstanceId )( PostPendingStatus ); diff --git a/packages/editor/src/components/post-pingbacks/index.js b/packages/editor/src/components/post-pingbacks/index.js index 63c0cc02497c7e..b037b5a868b26a 100644 --- a/packages/editor/src/components/post-pingbacks/index.js +++ b/packages/editor/src/components/post-pingbacks/index.js @@ -4,9 +4,9 @@ import { __ } from '@wordpress/i18n'; import { CheckboxControl } from '@wordpress/components'; import { withSelect, withDispatch } from '@wordpress/data'; -import { withInstanceId, compose } from '@wordpress/compose'; +import { compose } from '@wordpress/compose'; -function PostPingbacks( { pingStatus = 'open', instanceId, ...props } ) { +function PostPingbacks( { pingStatus = 'open', ...props } ) { const onTogglePingback = () => props.editPost( { ping_status: pingStatus === 'open' ? 'closed' : 'open' } ); return ( @@ -27,5 +27,4 @@ export default compose( [ withDispatch( ( dispatch ) => ( { editPost: dispatch( 'core/editor' ).editPost, } ) ), - withInstanceId, ] )( PostPingbacks ); diff --git a/packages/editor/src/components/post-sticky/index.js b/packages/editor/src/components/post-sticky/index.js index 3df854fa34fbff..ac259e568d4464 100644 --- a/packages/editor/src/components/post-sticky/index.js +++ b/packages/editor/src/components/post-sticky/index.js @@ -4,14 +4,14 @@ import { __ } from '@wordpress/i18n'; import { CheckboxControl } from '@wordpress/components'; import { withSelect, withDispatch } from '@wordpress/data'; -import { withInstanceId, compose } from '@wordpress/compose'; +import { compose } from '@wordpress/compose'; /** * Internal dependencies */ import PostStickyCheck from './check'; -export function PostSticky( { onUpdateSticky, postSticky = false, instanceId } ) { +export function PostSticky( { onUpdateSticky, postSticky = false } ) { return (