Skip to content

Commit 707bf2a

Browse files
mikachanSiobhyB
authored andcommitted
Add IS_GUTENBERG_PLUGIN flag to LastRevision (#55253)
1 parent 0afdb21 commit 707bf2a

File tree

1 file changed

+4
-0
lines changed
  • packages/edit-site/src/components/sidebar-edit-mode/template-panel

1 file changed

+4
-0
lines changed

packages/edit-site/src/components/sidebar-edit-mode/template-panel/last-revision.js

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ const useRevisionData = () => {
3131
function PostLastRevisionCheck( { children } ) {
3232
const { lastRevisionId, revisionsCount } = useRevisionData();
3333

34+
if ( ! process.env.IS_GUTENBERG_PLUGIN ) {
35+
return null;
36+
}
37+
3438
if ( ! lastRevisionId || revisionsCount < 2 ) {
3539
return null;
3640
}

0 commit comments

Comments
 (0)