[wp-trac] [WordPress Trac] #45954: Add a extra_tablenav() method to WP_MS_Sites_List_Table
WordPress Trac
noreply at wordpress.org
Fri Feb 22 00:30:34 UTC 2019
#45954: Add a extra_tablenav() method to WP_MS_Sites_List_Table
-------------------------------------+-------------------------------------
Reporter: pbiron | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version: 5.1
Severity: normal | Resolution:
Keywords: has-screenshots has- | Focuses: administration,
patch | multisite
-------------------------------------+-------------------------------------
Comment (by pbiron):
I was planning on adding some unit tests, but discovered there are no
tests for the equivalent filters provided by other list tables so I didn't
bother with any here.
The only tests I can find related to `extra_tablenav()` are for
`WP_Posts_List_Table` (e.g.,
`Tests_Admin_includesListTable::test_filter_button_should_not_be_shown_if_there_are_no_posts()`,
etc). I could add a test similar to those that checks that the "Filter"
button is present if nothing hooks into the new filters, but I don't think
that is really necessary.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45954#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list