Skip to content

Commit

Permalink
Change to getStatus and getStatuses
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 9, 2023
1 parent f84d3cb commit 61aeaff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/core-data/src/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ export const rootEntitiesConfig = [
key: 'plugin',
},
{
label: __( 'Post status' ),
name: 'postStatus',
label: __( 'Status' ),
name: 'status',
kind: 'root',
baseURL: '/wp/v2/statuses',
baseURLParams: { context: 'edit' },
plural: 'postStatuses',
plural: 'statuses',
key: 'slug',
},
];
Expand Down
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 @@ -33,7 +33,7 @@ export default function PagePages() {
pageSize: PAGE_SIZE_VALUES[ 0 ],
} );
// Request post statuses to get the proper labels.
const { records: statuses } = useEntityRecords( 'root', 'postStatus' );
const { records: statuses } = useEntityRecords( 'root', 'status' );
const postStatuses =
statuses === null
? EMPTY_OBJECT
Expand Down

0 comments on commit 61aeaff

Please sign in to comment.