From f2b03e208a89dae3beea5657fa42bd7453c9bca5 Mon Sep 17 00:00:00 2001 From: John James Jacoby Date: Mon, 23 Sep 2019 17:34:20 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@46251 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/sites.php | 2 ++ src/wp-includes/ms-blogs.php | 39 ++++++++++++++++++++++++++++ tests/phpunit/tests/multisite.php | 42 +++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) diff --git a/src/wp-admin/network/sites.php b/src/wp-admin/network/sites.php index 227f37e289..52b4146c39 100644 --- a/src/wp-admin/network/sites.php +++ b/src/wp-admin/network/sites.php @@ -369,6 +369,8 @@ if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
+views(); ?> +