From 65dd50865bda463d656a4148ae42494acb34657a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:33:48 +0200 Subject: [PATCH] DataViews: limit users to those who have published pages (#55455) Co-authored-by: Nik Tsekouras --- packages/edit-site/src/components/page-pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/page-pages/index.js b/packages/edit-site/src/components/page-pages/index.js index dc77439217c80..9fbbceeb866b2 100644 --- a/packages/edit-site/src/components/page-pages/index.js +++ b/packages/edit-site/src/components/page-pages/index.js @@ -79,7 +79,7 @@ export default function PagePages() { } = useEntityRecords( 'postType', 'page', queryArgs ); const { records: authors } = useEntityRecords( 'root', 'user', { - who: 'authors', + has_published_posts: [ 'page' ], } ); const paginationInfo = useMemo(