We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0afdb21 commit 707bf2aCopy full SHA for 707bf2a
packages/edit-site/src/components/sidebar-edit-mode/template-panel/last-revision.js
@@ -31,6 +31,10 @@ const useRevisionData = () => {
31
function PostLastRevisionCheck( { children } ) {
32
const { lastRevisionId, revisionsCount } = useRevisionData();
33
34
+ if ( ! process.env.IS_GUTENBERG_PLUGIN ) {
35
+ return null;
36
+ }
37
+
38
if ( ! lastRevisionId || revisionsCount < 2 ) {
39
return null;
40
}
0 commit comments