WordPress.org

Make WordPress Core

Opened 6 years ago

Last modified 5 months ago

#27253 assigned enhancement

Enhancement Request: direct link to Drafts under Posts and Pages on the sidebar

Reported by: imanilea Owned by: chriscct7
Milestone: Priority: normal
Severity: normal Version: 3.8.1
Component: Posts, Post Types Keywords: has-ux-feedback needs-patch
Focuses: administration Cc:
PR Number:

Description (last modified by SergeyBiryukov)

It would be awesome if there were a link under posts and pages to get directly to Drafts. So, for example the sidebar would have:

Pages
   All Pages
   Drafts
   Add New

Attachments (2)

drafts-menu-mockup.png (37.9 KB) - added by hugobaeta 3 years ago.
A quick mockup done in the chrome inspector
27253.diff (4.4 KB) - added by DrewAPicture 3 years ago.

Download all attachments as: .zip

Change History (21)

#1 @iseulde
6 years ago

  • Component changed from Toolbar to Administration
  • Focuses administration added
  • Keywords ux-feedback added

#2 @SergeyBiryukov
6 years ago

  • Component changed from Administration to Posts, Post Types
  • Description modified (diff)
  • Type changed from feature request to enhancement

#3 @bsuneja
5 years ago

Editing drafts is a (more) frequent event for many content creators than creating new posts/pages. Adding the Drafts link so it's more quickly accessible would be great.

Additionally, it'd be great to have a link to Drafts in the admin bar shown on top when you're logged in, either next to the +New drop-down or as another item in the +New drop-down menu, so it becomes:

+New | Drafts

OR

+New
---Post
---Drafts
---Media
---Link
---Page
---User

Last edited 5 years ago by bsuneja (previous) (diff)

This ticket was mentioned in Slack in #design by karmatosed. View the logs.


3 years ago

#5 @hugobaeta
3 years ago

This might be an interesting addition, but I'd argue that it might be more useful for "Posts" than for "Pages".

@hugobaeta
3 years ago

A quick mockup done in the chrome inspector

#6 @karmatosed
3 years ago

In the design meeting on Slack today we discussed this and Custom Post Types came up. I think it could be interesting to allow developers to decide whether to show drafts in the menu or not. The issue with this is that it adds another variable to them, but it's worth considering as some will and some won't make sense to have drafts.

Another point raised that I agree with, is that pages probably makes less sense than posts to have drafts.

I really like the option above and think it does provide value. Anyone interested in iterating on a patch?

@DrewAPicture
3 years ago

#7 @DrewAPicture
3 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.7

27253.diff implements a Drafts link and show_drafts_in_menu argument for register_post_type(), disabled by default. The patch only enables it for posts.

#8 @helen
3 years ago

I am not sure about a register_post_type() arg - it feels overly presumptive about post statuses in tandem with other post types. Seems reasonable enough for posts-posts, though.

#9 @jorbin
3 years ago

Thinking about this in the context of custom post statuses, I wonder if register_post_type should include a show_status_in_menu argument that takes an array of statuses and is empty by default. If a status is passed in, it adds a menu link for the status.

#10 @karmatosed
3 years ago

  • Keywords has-ux-feedback added; ux-feedback removed

This ticket was mentioned in Slack in #core by helen. View the logs.


3 years ago

This ticket was mentioned in Slack in #core by chriscct7. View the logs.


3 years ago

#13 @chriscct7
3 years ago

I tend to follow @jorbin on this in terms of having statuses register themselves as a menu item with an array default empty for each post type. It would be a lot more flexible for post statuses in the future.

#14 @chriscct7
3 years ago

  • Milestone changed from 4.7 to Future Release

Punting per discussion

#15 @chriscct7
3 years ago

  • Milestone changed from Future Release to 4.7
  • Owner set to chriscct7
  • Status changed from new to assigned

Patching it per discussion

This ticket was mentioned in Slack in #core by jeffpaul. View the logs.


3 years ago

This ticket was mentioned in Slack in #core by desrosj. View the logs.


3 years ago

#18 @desrosj
3 years ago

  • Keywords needs-refresh added

Most recent patch is currently failing for me.

#19 @chriscct7
3 years ago

  • Keywords needs-patch added; has-patch needs-refresh removed
  • Milestone changed from 4.7 to Future Release

Needs more work and testing that what will be possible in the remaining time left for 4.7 release. Punting to next release.

Note: See TracTickets for help on using tickets.