WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 4 years ago

Last modified 4 years ago

#8243 closed enhancement (fixed)

Make draft pages to appear in "recent drafts" dashboard gadget

Reported by: asandler Owned by: DrewAPicture
Milestone: 4.4 Priority: normal
Severity: normal Version: 2.7
Component: Posts, Post Types Keywords: good-first-bug
Focuses: administration Cc:
PR Number:

Description

In 2.7 beta 2, draft Pages do not appear in "recent drafts" dashboard gadget. It would be very nice to see draft pages there as well. Another option is to make it optional and allow one to select whether he/she wants to see draft pages in the gadget.

Attachments (3)

dashboard.patch (510 bytes) - added by mrmist 9 years ago.
Change post type to any
8243.diff (1.5 KB) - added by sillybean 6 years ago.
Support all post types in Recent Drafts dashboard widget
8243.2.diff (813 bytes) - added by iamfriendly 4 years ago.
Refreshed the patch and added docs

Download all attachments as: .zip

Change History (12)

#1 @FFEMTcJ
11 years ago

  • Milestone changed from 2.8 to Future Release

@mrmist
9 years ago

Change post type to any

#2 @mrmist
9 years ago

  • Keywords has-patch added

There doesn't seem much call for this judging by the lack of traction, but I believe the attached one line change makes Pages appear as well as Posts. (It does for me.)

#3 @sillybean
6 years ago

I like this a LOT now that custom post types are more commonplace. I'm uploading a more complicated patch that not only changes the post_type argument but also modifies the "View all..." link at the bottom of the widget to create a list of links to each of the post types' drafts.

@sillybean
6 years ago

Support all post types in Recent Drafts dashboard widget

#4 @jeremyfelt
6 years ago

  • Component changed from Administration to Posts, Post Types
  • Focuses admin added

#5 @wonderboymusic
4 years ago

  • Keywords needs-patch good-first-bug needs-docs added; has-patch removed

I would prefer a filter on the $query_args

@iamfriendly
4 years ago

Refreshed the patch and added docs

#6 @iamfriendly
4 years ago

  • Keywords needs-patch needs-docs removed

As @wonderboymusic suggests, I think a filter on the $query_args is the way forward. The patch I've just added does just that and also adds the requisite docs.

#7 @DrewAPicture
4 years ago

  • Milestone changed from Future Release to 4.4

#8 @DrewAPicture
4 years ago

  • Owner set to DrewAPicture
  • Resolution set to fixed
  • Status changed from new to closed

In 35003:

Dashboard: Introduce the dashboard_recent_drafts_query_args filter, making it possible to manipulate the post query arguments used in the 'Recent Drafts' dashboard widget.

Props iamfriendly.
Fixes #8243.

#9 @DrewAPicture
4 years ago

In 35004:

Docs: Fix some minor formatting in the $query_args parameter description for the filter doc.

See #8243. See #32246.

Note: See TracTickets for help on using tickets.