[wp-trac] [WordPress Trac] #42066: List tables: consider a new method to generate the views links markup
WordPress Trac
noreply at wordpress.org
Mon Oct 2 20:17:44 UTC 2017
#42066: List tables: consider a new method to generate the views links markup
----------------------------+-----------------------------
Reporter: afercia | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Splitting this out from #32399.
Most of the List Tables used in core comes with some "views links" to
switch the table to a subset of items, say published, drafts, trashed
posts or approved, pending comments or different user types.
While the logic to get the views differs depending on the type of items
(post status, user role, active tab, etc.) the code that actually
generates the links markup is basically always the same and could benefit
from some abstraction in a general method. See also
[ticket:32399#comment:32].
/cc @flixos90
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42066>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list