WordPress.org

Make WordPress Core

Opened 8 years ago

Last modified 15 months ago

#12960 new enhancement

Number of posts on the Users page should include drafts and pending review

Reported by: archon810 Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.9.2
Component: Users Keywords: has-patch needs-testing
Focuses: Cc:

Description

The numbers of posts on the Users page currently only include published posts, which I think is not good enough. For example, I have a contributor who has only written a few drafts and submitted a few articles for review.

If I decide to delete him and base my decision on what I see on the Users page, I would probably just go with the "Delete the user and all his posts" option, which would delete more than I would expect.

Attachments (3)

12960.diff (486 bytes) - added by wojtek.szkutnik 7 years ago.
12960.1.diff (1.2 KB) - added by Nikschavan 15 months ago.
12960.2.diff (665 bytes) - added by Nikschavan 15 months ago.

Download all attachments as: .zip

Change History (11)

#1 @archon810
8 years ago

  • Cc admin@… added

#2 @wojtek.szkutnik
7 years ago

  • Keywords gsoc has-patch needs-testing added

Indeed, scheduled, pending and draft posts should be counted as well

#3 @wojtek.szkutnik
7 years ago

  • Cc wojtek.szkutnik@… added

#4 @nacin
7 years ago

  • Milestone changed from Awaiting Review to Future Release

#5 @chriscct7
3 years ago

  • Keywords needs-testing removed

Patch is still good

#7 @chriscct7
2 years ago

  • Keywords needs-refresh added; gsoc removed

@Nikschavan
15 months ago

@Nikschavan
15 months ago

#8 @Nikschavan
15 months ago

  • Keywords needs-testing added; needs-refresh removed

Refreshed the patch with current trunk in 12960.2.diff

This needs to be tested as the function get_posts_by_author_sql is also used in WP_User_Query->parse_orderby()

Note: See TracTickets for help on using tickets.