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 30, 2023
1 parent beb0a00 commit f3d0291
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 @@ -228,7 +228,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 f3d0291

Please sign in to comment.