Skip to content

Commit

Permalink
DataViews: limit users to those who have published pages (WordPress#5…
Browse files Browse the repository at this point in the history
…5455)

Co-authored-by: Nik Tsekouras <ntsekouras@outlook.com>
  • Loading branch information
oandregal and ntsekouras authored Oct 19, 2023
1 parent d70f278 commit 65dd508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/page-pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 65dd508

Please sign in to comment.