[wp-trac] [WordPress Trac] #37392: Multisite "Sites" screen: Add links to filter websites by status
WordPress Trac
noreply at wordpress.org
Fri Mar 16 03:37:35 UTC 2018
#37392: Multisite "Sites" screen: Add links to filter websites by status
----------------------------------------+------------------------------
Reporter: thomaswm | Owner: mnelson4
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: multisite
----------------------------------------+------------------------------
Comment (by mnelson4):
> Thanks for the updated patch @mnelson4, sorry it took me so long to
review.
No worries, thanks for the review!
> we should consider other approaches than how core has handled this
previously too... like a select multiple, multiple checkboxes
In my usage of multisite, it's rare for a site to have multiple statuses
(actually, we mostly just mark sites as spam, and don't really use the
other statuses much). So I wouldn't prioritize this, but if you think it's
important we can attempt it.
In order to have parity with what `WP_Site_Query` can handle, where you
can provide any of the statuses and a value of either `true` or `false`
(and not including the status means "whatever"), I think we would need to
list each status, and have a dropdown for it with options like "Yes",
"No", or "Either", and have a button saying "Filter" or "Search".
To query for "archived and mature", the would set archived to "Yes", and
mature to "Yes", and leave all the others at "Either". For "deleted and
not mature" they would set deleted to "Yes", mature to "No", and leave all
others on "Either". Thoughts?
Also, it's maybe this patch should just add actions and filters to WP
core, and then create a plugin for this instead. Then we can see what
feedback there is on that plugin, before committing to a decision for WP
core. Thoughts?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37392#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list