Skip to content

Commit

Permalink
[Code quality]: Remove leftovers of legacy query-loop block (#41891)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored Jun 23, 2022
1 parent 0a017de commit 6115283
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
8 changes: 1 addition & 7 deletions packages/block-library/src/post-template/style.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
.wp-block-post-template,
// We have kept `wp-block-query-loop` class as well for backwards
// compatibility with existing `QueryLoop` blocks that haven't been
// updated, after the renaming of the block to `Post Template`.
// See: https://github.com/WordPress/gutenberg/pull/32514.
// TODO: Remove this class when WordPress 5.9 is released.
.wp-block-query-loop {
.wp-block-post-template {
margin-top: 0;
margin-bottom: 0;
max-width: 100%;
Expand Down
6 changes: 0 additions & 6 deletions packages/blocks/src/api/parser/convert-legacy-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ export function convertLegacyBlockNameAndAttributes( name, attributes ) {
name = 'core/embed';
}

// Convert 'core/query-loop' blocks in existing content to 'core/post-template'.
// TODO: Remove this check when WordPress 5.9 is released.
if ( name === 'core/query-loop' ) {
name = 'core/post-template';
}

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

0 comments on commit 6115283

Please sign in to comment.