Skip to content

Commit

Permalink
Add legacy block conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Apr 25, 2022
1 parent 0cead4a commit aef1054
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/blocks/src/api/parser/convert-legacy-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export function convertLegacyBlockNameAndAttributes( name, attributes ) {

// Convert Post Comment blocks in existing content to Comment blocks.
// TODO: Remove these checks when WordPress 6.0 is released.
if ( name === 'core/comments-query-loop' ) {
name = 'core/post-comments';
}
if ( name === 'core/post-comment-author' ) {
name = 'core/comment-author-name';
}
Expand Down

0 comments on commit aef1054

Please sign in to comment.