[wp-trac] [WordPress Trac] #33216: Users.php post count is not accurate as it does not include drafts.
WordPress Trac
noreply at wordpress.org
Mon Mar 3 21:17:34 UTC 2025
#33216: Users.php post count is not accurate as it does not include drafts.
--------------------------+-----------------------------
Reporter: emirpprime | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
--------------------------+-----------------------------
Comment (by emirpprime):
Interesting - #21431 looks like it was a performance fix for the
underlying function, but I stand by this being a not-insignificant UX
issue and this patch a step forward.
That said I actually think my patch doesn't go far enough - to be
informative and deliver the implied/expected data on the users screen I
believe the count should really include all posts from a user (including
draft, private, and custom statuses) except inherit, auto-draft and trash
(that might be simplified as all except trash and those marked as internal
- but I'd have to check). It could be filterable so that plugins can
exclude statuses as required (eg some concept of a custom trash status
relevant only to that plugin).
However that's a much bigger change that would definitely need some bigger
voices in the discussion to decide whether it is worth persueing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33216#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list