From b65ea119bba58a3fce5894139572b6582e11762f Mon Sep 17 00:00:00 2001 From: johnjamesjacoby Date: Mon, 23 Sep 2019 17:35:59 +0000 Subject: [PATCH] Multisite/Sites: Add links to filter websites by status. This commit brings the Network-Admin Sites list page up-to-speed with other similar list-table powered pages, by adding links to filter the results by Site Status. Includes a single unit test for the newly introduced `wp_count_sites()` multisite function, named to match the `wp_count_` function pattern from other list tables. Fixes #37392. Props mnelson4, spacedmonkey, pbiron. Built from https://develop.svn.wordpress.org/trunk@46251 git-svn-id: http://core.svn.wordpress.org/trunk@46063 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/sites.php | 2 ++ wp-includes/ms-blogs.php | 39 ++++++++++++++++++++++++++++++++++++++ wp-includes/version.php | 2 +- 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/wp-admin/network/sites.php b/wp-admin/network/sites.php index 227f37e289..52b4146c39 100644 --- a/wp-admin/network/sites.php +++ b/wp-admin/network/sites.php @@ -369,6 +369,8 @@ if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
+views(); ?> +