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 <oandregal@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
  • Loading branch information
3 people authored and patil-vipul committed Jun 17, 2024
1 parent e26534f commit 77c09ad
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 77c09ad

Please sign in to comment.