diff --git a/packages/edit-site/src/components/sidebar-edit-mode/template-panel/last-revision.js b/packages/edit-site/src/components/sidebar-edit-mode/template-panel/last-revision.js index a4c5e29aeba697..b81c1b8b6ddbec 100644 --- a/packages/edit-site/src/components/sidebar-edit-mode/template-panel/last-revision.js +++ b/packages/edit-site/src/components/sidebar-edit-mode/template-panel/last-revision.js @@ -31,6 +31,10 @@ const useRevisionData = () => { function PostLastRevisionCheck( { children } ) { const { lastRevisionId, revisionsCount } = useRevisionData(); + if ( ! process.env.IS_GUTENBERG_PLUGIN ) { + return null; + } + if ( ! lastRevisionId || revisionsCount < 2 ) { return null; }