Skip to content

Commit

Permalink
Add IS_GUTENBERG_PLUGIN flag to LastRevision (#55253)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikachan committed Oct 13, 2023
1 parent e2ed543 commit 966e124
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

1 comment on commit 966e124

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 966e124.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6512602388
📝 Reported issues:

Please sign in to comment.