Skip to content

Commit cc4955e

Browse files
committed
Add supportsPagination property to rootEntitiesConfig for users, comments, and plugins. This is so totalItems and totalPages is correctly set in meta from the X headers
1 parent 238c573 commit cc4955e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core-data/src/entities.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export const rootEntitiesConfig = [
141141
getTitle: ( record ) => record?.name || record?.slug,
142142
baseURLParams: { context: 'edit' },
143143
plural: 'users',
144+
supportsPagination: true,
144145
},
145146
{
146147
name: 'comment',
@@ -149,6 +150,7 @@ export const rootEntitiesConfig = [
149150
baseURLParams: { context: 'edit' },
150151
plural: 'comments',
151152
label: __( 'Comment' ),
153+
supportsPagination: true,
152154
},
153155
{
154156
name: 'menu',
@@ -207,6 +209,7 @@ export const rootEntitiesConfig = [
207209
baseURLParams: { context: 'edit' },
208210
plural: 'plugins',
209211
key: 'plugin',
212+
supportsPagination: true,
210213
},
211214
{
212215
label: __( 'Status' ),

0 commit comments

Comments
 (0)