From ba2700068df9f937f4912f0a7092a89c986b9583 Mon Sep 17 00:00:00 2001 From: desrosj Date: Fri, 20 Sep 2019 20:53:58 +0000 Subject: [PATCH] Networks and Sites: Add support for the `extra_tablenav()` method in `WP_MS_Sites_List_Table`. This method allows additional filters or other UI components to be added to the top and bottom of the `WP_List_Table` between the bulk actions dropdown and search input field. Fixes #45954. Props pbiron, desrosj. Built from https://develop.svn.wordpress.org/trunk@46211 git-svn-id: http://core.svn.wordpress.org/trunk@46023 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../includes/class-wp-ms-sites-list-table.php | 42 +++++++++++++++++++ wp-admin/network/sites.php | 12 +++--- wp-includes/version.php | 2 +- 3 files changed, 48 insertions(+), 8 deletions(-) diff --git a/wp-admin/includes/class-wp-ms-sites-list-table.php b/wp-admin/includes/class-wp-ms-sites-list-table.php index edcec3366d..58030bea4b 100644 --- a/wp-admin/includes/class-wp-ms-sites-list-table.php +++ b/wp-admin/includes/class-wp-ms-sites-list-table.php @@ -230,6 +230,48 @@ class WP_MS_Sites_List_Table extends WP_List_Table { } } + /** + * Extra controls to be displayed between bulk actions and pagination. + * + * @since 5.3.0 + * + * @param string $which + */ + protected function extra_tablenav( $which ) { + ?> +
+ 'site-query-submit' ) ); + } + } + ?> +
+