diff --git a/packages/editor/src/components/post-actions/actions.js b/packages/editor/src/components/post-actions/actions.js index a4937dc6a75d7..bd7552b642fad 100644 --- a/packages/editor/src/components/post-actions/actions.js +++ b/packages/editor/src/components/post-actions/actions.js @@ -1108,6 +1108,7 @@ export function usePostActions( postType, onActionPerformed ) { ].includes( postType ); const isPattern = postType === PATTERN_POST_TYPE; const isLoaded = !! postTypeObject; + const supportsRevisions = !! postTypeObject?.supports?.revisions; return useMemo( () => { if ( ! isLoaded ) { return []; @@ -1115,7 +1116,7 @@ export function usePostActions( postType, onActionPerformed ) { const actions = [ postTypeObject?.viewable && viewPostAction, - postRevisionsAction, + supportsRevisions && postRevisionsAction, globalThis.IS_GUTENBERG_PLUGIN ? ! isTemplateOrTemplatePart && ! isPattern && @@ -1181,5 +1182,6 @@ export function usePostActions( postType, onActionPerformed ) { restorePostAction, onActionPerformed, isLoaded, + supportsRevisions, ] ); }