From 6003a0d3971d197678047e3c9bffc20d9cf24a81 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Sat, 16 Mar 2024 12:23:32 +0100 Subject: [PATCH] remove deprecated wp_get_sites() call from uninstall routine We only support WP 4.7 and later since 1.5. Remove the 4.6 call. --- inc/class-statifyblacklist-system.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/inc/class-statifyblacklist-system.php b/inc/class-statifyblacklist-system.php index 5e1a950..87169aa 100644 --- a/inc/class-statifyblacklist-system.php +++ b/inc/class-statifyblacklist-system.php @@ -89,9 +89,6 @@ class StatifyBlacklist_System extends StatifyBlacklist { if ( function_exists( 'get_sites' ) ) { $sites = get_sites(); - } elseif ( function_exists( 'wp_get_sites' ) ) { - // phpcs:ignore WordPress.WP.DeprecatedFunctions.wp_get_sitesFound -- Legacy support for WP < 4.6. - $sites = wp_get_sites(); } else { return; }