From 52ea793708260f72e097679152193f29e57008fe Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Tue, 16 Aug 2022 21:59:54 +0300 Subject: [PATCH] [Block Library - Query Loop]: Update posts list variation --- packages/block-library/src/query/variations.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/query/variations.js b/packages/block-library/src/query/variations.js index fb15645760f29..92c35a5b97012 100644 --- a/packages/block-library/src/query/variations.js +++ b/packages/block-library/src/query/variations.js @@ -34,9 +34,7 @@ const variations = [ { name: 'posts-list', title: __( 'Posts List' ), - description: __( - 'Display a list of your most recent posts, excluding sticky posts.' - ), + description: __( 'Display a list of your posts.' ), icon: postList, attributes: { query: { @@ -52,6 +50,8 @@ const variations = [ inherit: false, }, }, + isActive: ( blockAttributes ) => + blockAttributes.query.postType === 'post', scope: [ 'inserter' ], }, {