[wp-trac] [WordPress Trac] #63728: In WP Admin -> Posts add 'Filter by author' dropdown and add visible labels for filters
WordPress Trac
noreply at wordpress.org
Tue Jul 22 15:36:57 UTC 2025
#63728: In WP Admin -> Posts add 'Filter by author' dropdown and add visible labels
for filters
-------------------------------------+-------------------------------------
Reporter: Presskopp | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-screenshots has- | Focuses: accessibility,
patch changes-requested | administration
-------------------------------------+-------------------------------------
Changes (by joedolson):
* keywords: has-screenshots has-patch => has-screenshots has-patch
changes-requested
Comment:
I like the idea of making the labels visible. A couple things:
1) It looks strange to have two of the four select inputs have labels. We
should probably either add all of them or none of them.
2) Should probably add a check to only display the author filter if there
are multiple authors. For single-user sites, this would never be useful.
3) The query should also only fetch authors who have authored posts; this
would help streamline the results. There's no need to have a filter that
represents users who don't have posts. What you actually need is to fetch
all users who have published posts in the designated post type; you can
use the `has_published_posts` argument to get that data.
As a side note that could be looked at when this is fleshed out into a
more complete patch - there is an alignment issue on the bottom of the
buttons/select inputs. If it's simple to resolve, it might make sense to
take care of it with this issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63728#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list