Skip to content

Commit

Permalink
Expand comment on classic block registration
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed May 25, 2023
1 parent f458d95 commit baa1535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ const getAllBlocks = () => {
}

// Only add the classic block in WP Context
// and when TinyMCE experiment is disabled or cookie to require TinyMCE is set
// and when either of the following is true:
// - TinyMCE experiment is disabled;
// - there is a classic block in the current post's content;
// - the cookie to require TinyMCE is set.
if (
window?.wp?.oldEditor &&
( window?.wp?.needsClassicBlock ||
Expand Down

0 comments on commit baa1535

Please sign in to comment.