Skip to content

Commit

Permalink
Pages sidebar: adds published & scheduled items (WordPress#62021)
Browse files Browse the repository at this point in the history
Co-authored-by: oandregal <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
  • Loading branch information
3 people authored and carstingaxion committed Jun 4, 2024
1 parent 23a679b commit 4a7bf32
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,36 @@ export const DEFAULT_VIEWS = {
icon: pages,
view: DEFAULT_PAGE_BASE,
},
{
title: __( 'Published' ),
slug: 'published',
icon: pages,
view: {
...DEFAULT_PAGE_BASE,
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
value: 'publish',
},
],
},
},
{
title: __( 'Scheduled' ),
slug: 'future',
icon: pages,
view: {
...DEFAULT_PAGE_BASE,
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
value: 'future',
},
],
},
},
{
title: __( 'Drafts' ),
slug: 'drafts',
Expand Down

0 comments on commit 4a7bf32

Please sign in to comment.